Hi,
Is this syntax correct for setting a property for several elements at one go?
function myFunc(a) {
TweenMax.set([a], {css:{opacity:0}});
}
var a = 'id1, id2, id3, id4, id5';
myFunc(a);
Thanks!
Hello friends,
The current project I'm working on performs nicely on desktop, but kinda slow (when scrolling) on an iPad. I'm using iScroll (useTransform: true), with window.requestAnimationFrame.
Since the gpu of ipad is quad-core while cpu is dual-core, will using force3d improve performance in this case?
Thanks in advance!
Hello and thanks,
The code for the Facebook Like Box is something like this:
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FSample&width=300&height=258&colorscheme=dark&show_faces=true&header=false&stream=false&show_border=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:258px;" allowTransparency="true"></iframe>
The code for the ScrollTo is:
$('a#idname').click(function(){
TweenMax.to(window, 1, {scrollTo:{y:$('#aboutus').offset().top}});
return false;
});
Regards
Hi!
I'm working on a Wordpress website using Greensock. I'm also using the ScrollTo plugin. Everything's working fine until I included a Facebook Like Box.
Now the ScrollTo is not behaving as expected. It no longer scroll to an anchor target smoothly. What happens now is it jumps directly to the anchor w/o the easing.
When I remove the Facebook Like Box code, the ScrollTo works perfectly.
Any ideas?
Thanks!
Is it possible to use scroll events to trigger resume and reverse for an animation? On default, I want the animation paused/stopped. When I scroll down (one swipe of mouse wheel or one click on scroll bar down), animation will resume 1 frame. And when scroll up, the reverse.