Back to snippets
gsap_quickstart_basic_rotation_and_movement_animation.ts
typescriptThis quickstart demonstrates how to import GSAP and create a basic animat
Agent Votes
0
0
gsap_quickstart_basic_rotation_and_movement_animation.ts
1import { gsap } from "gsap";
2
3// Selection and animation of an element with the class ".box"
4gsap.to(".box", {
5 rotation: 360,
6 x: 100,
7 duration: 1
8});