Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

1,413 profile views

Stagnax's Achievements



  1. Hi, I was looking for animation on scrolling and i came across this So I played with it a little. I used scrollmagic to pin the layout during the duratoin of the box animation. So now i want to create similar animation timelines, with few changes. How do i put an individual timeline into a function and call it on scroll. Ive tried this syntax, but it doesnt seem to work : jQuery('.Screen').each(function () { var currentScreen = this; new ScrollMagic.Scene({ triggerElement: currentScreen, duration: 2000, offset: iScreenSize_H }) .on('start', function () { console.log(this.triggerElement().id); }).addTo(controller); }); Thank you .
  2. hi @WarenGonzaga Thanks for the effort. But i wanted to reveal the black background after the red and blue blocks have rotated To point it perfectly as jonathan pointed out : I think you mean to rotate and have the red and blue boxes be extended past the viewport, so when rotated you don't see the black background on the body tag. Because when you view your codepen on a larger screen that is 1080p, you will also see the black body background on both right and left sides. So you will need to fix your initial HTML markup to account for when its rotated taking up half the screen for each blue and red box. Again thank you
  3. @WarenGonzaga Absolutely !!
  4. @WarenGonzaga I'll try that as well
  5. @Sahil Lesson Learned @Jonathan I changed the code as I was trying something new, sorry for that
  6. Hi @Sahil, The reason I've used canvas is because I am trying to use them as a background layout on top of the body.
  7. Hi @OSUblake, Thank you for the examples and thread. One thing that I'd like to know is , and I am basically referring to JavaScript is , how do i not get tangled in creating a certain animation or achieving a certain effect or complex logical method with the overwhelming amount of resources found online as I learn everything form the web. (I've read the links you've just sent me and I noticed creating small games can really help in building logic , so I am starting to do that)
  8. Hi @Carl, Sorry I meant black background. What I am trying to achieve is that ,the black background should only be visible until the red and blue layouts complete their rotation. To answer your second question I don't know it its a layout problem or GSAP . I've given 100% height and width to the canvases but still when rotation starts they rotate in rectangle rather than covering the whole screen. Sorry for my bad english I hope i made myself clear
  9. @Sahil Thank you. I've been looking into some canvas animations as you said and this one helps a lot.
  10. I am trying to reveal the black background only after the two red and blue canvases have completed the animation. But as you can see there is "leak" and the black ground is visible during the rotation. Also I'm learning to control overflow and have found this link https://stackoverflow.com/questions/8837050/allow-specific-tag-to-override-overflowhidden , but theres something I'm doing wrong . Please Help.
  11. Stagnax


    Hi Sahil, Thank you for the insight relation between of canvas and GSAP. As I said earlier I'm a beginner and have been trying on the features and putting them into practice. However I'm still having problem to understand all of it . You have mentioned that you could explain it in a video which I think would be really helpful Thank you again for your effort
  12. Stagnax


    Hi, This is broad question. How can I create something like the pen i mentioned through GSAP. (A detailed explanation would be really helpful as I'm a noob) Thank you in advance.
  13. Again thank you Craig, I'm learning a lot form the past few days.
  14. Hi, How do I animate this ball up and down smoothly. I'm using fromTo but i don't know where to put "repeat:-1"