Gsap effect on click
Gsap effect on click < div class = "item" > < div class = "circle" ></ div > < h1 class = "head" >Angela</ h1 > </ div > Here is the same code, small gsap effect on click; * { margin: 0 ; padding: 0 ; box-sizing: border-box ; } body { display: flex ; justify-content: center ; align-items: center ; height: 100 vh ; background-color: rgb ( 10 , 8 , 19 ); color: white ; font-family: sans-serif ; } .item { display: flex ; gap: 1 rem ; align-items: center ; cursor: pointer ; } .circle { height: 20 px ; width: 20 px ; background-color: white ; border-radius: 50 % ; } Javascript; gsap . defaults ({ duration : 0.2 }) const myAnime = gsap . timeline ({ paused...



Comments
Post a Comment