Jump to content
Search Community

acidking

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by acidking

  1. Thank you! Is it possible to control the speed by which it tweens? It seems to use the same speed I set in the timeline.
  2. I researched for a couple of hours but couldn't find how to set the seek duration, when I use seek it snaps to the particular point immediately, is there a way to make it slide smoothly to that point?
  3. Thanks Carl for the video and explanation. I'll see what I can do to optimise the code for better performance. Any other input particular to my code would be much appreciated.
  4. Here's a test sample: http://maxim.comze.com You can download the zipped files here: http://maxim.comze.com/test.zip Try clicking the buttons on the left, go through them one by one. When the buttons goes black it means it reached the scroll target. In Chrome and others it works fine, in Safari it has an issue, it keeps pausing before reaching the target.
  5. It happens only when there're other animations playing, in the example you provided there are no other animations. My Mac is all up to date.
  6. How was this resolved? I am still having the same problem (Safari only), and I am using the latest 1.11. On Safari the page scrolls a few pixels and stops, like the author reported.
  7. Yes that works. Thanks. I didn't know I can use + "px" to add values.
  8. I have a CSS animation code below and works fine, but I couldn't get it to work in GS, I probably didn't get the syntax correct. Basically it enables the background of .screen to scroll along with the window scroll. In this example, for each 600px from top it scrolls 200px. var top = $('body').offset().top + $(document).scrollTop(); var screenAnim = -200 * top/600; $('.screen').css({ 'backgroundPosition' : screenAnim });
  9. I tried HTML and BODY together, it scrolls a couple of pixels and stops.
  10. When using function scroll0() { TweenMax.to($('html'), 2, {scrollTo:{y:0}}); } it works in Firefox, but stopped working in Chrome
  11. On other browsers it works fine. I am new to Greensock, so I am not sure if there's a particular issue with FireFox? This is the code I use: function scroll0() { TweenMax.to($('body'), 2, {scrollTo:{y:0}}); }
×
×
  • Create New...