Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $(".tamer").on('click',function(){
  2. TweenMax.to($("setcion#home"), 2, {
  3. autoAlpha: 0
  4. x: -1000,
  5. ease: Power2.easeOut,
  6. onStart: function(){
  7. // on start
  8. },
  9. onComplete: function(){
  10. $('section#chapter1').show()
  11. }
  12. })
  13.  
  14. // Timeline
  15. var tl = new TimelineMax()
  16.  
  17. tl.to()
  18. tl.from()
  19. tl.staggerTo()
  20. })
  21.  
  22. section#home {
  23. display: none;
  24. opacity: 0;
  25. transform: translateX(-1000px)
  26. }
  27.  
  28. https://greensock.com/docs/#/HTML5/GSAP/TweenMax/to/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement