Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".tamer").on('click',function(){
- TweenMax.to($("setcion#home"), 2, {
- autoAlpha: 0
- x: -1000,
- ease: Power2.easeOut,
- onStart: function(){
- // on start
- },
- onComplete: function(){
- $('section#chapter1').show()
- }
- })
- // Timeline
- var tl = new TimelineMax()
- tl.to()
- tl.from()
- tl.staggerTo()
- })
- section#home {
- display: none;
- opacity: 0;
- transform: translateX(-1000px)
- }
- https://greensock.com/docs/#/HTML5/GSAP/TweenMax/to/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement