WarenGonzaga
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by WarenGonzaga
-
-
Hello daviddelusenet! Welcome to GSAP forum.
Please could you provide a quick codepen about your problem so we can explore your code and make some quick edits for it.
Here's how to create codepen....Waren | GSAP Enthusiast
- 2
-
Hey buddy! Welcome to GSAP Forum and I really appreciate your wonderful problem with GSAP.
Well head to my forked Codepen for you to check -->
See the Pen qqoNEw by Waren_Gonzaga (@Waren_Gonzaga) on CodePen
I'll explain how I did it, well the above suggestions was good and got a point. If you want to make your code flexible or what I mean is responsive please use a percentage instead of actual pixel. Pixel is specific measurement and percentage is what the screen size in percent. You can easily estimate the screen resolution using Percentage.
Here's my quick edit to your codes in JavaScript:
var el = document.getElementById("testDiv_id"); //Set The Tween Width TweenMax.set(el, {width: "80%"}); //Animate it to bigger size, previouslu 930px TweenMax.to(el, 1, {width:"90%", height:230, borderRadius:"0px 120px", onComplete:runTween}); //Subtract it to 25% because that is the percent of 730 over 800px function runTween() { TweenMax.to(el, 1, {width:"-=25%", height:130, y:150, borderRadius:"120px 0px"}); } //DevTip: Always use percentage if you want to be your work responsize! //Waren | GSAP Enthusiast.
Explanation: The above code is revised, first I setup the width using set method in TweenMax. Then I calculate the percentage based on your original pixel measurement. That's it! I hope it helps...
Additional I add wrapper div... just check it
Waren | GSAP Enthusiast- 1
-
What a very nice story buddy! I really appreciate your inspiring story with GSAP.... I am from noob guy into superhero with this awesome animation platform out there.
From an ordinary developer into superhero developer with GSAP. Thanks!
Waren | GSAP Enthusiast- 5
-
Any updates on the animation? Did you manage to create the animation for your website?
-
It would be nice to provide a codepen for your issue buddy. Welcome to GSAP Forum!
I suggest use different functions with animation inside and call them at same time. for example:window.onload = init; //call the function that will call all the animation at same time. function init() { one(); two(); } function one() { // tl animation here repeating } function two() { // tl animation not repeating }
Hope it helps buddy!
GSAP Enthusiast
Waren- 1
-
I think this is the animation you want to achieve? Please let me know thanks!
Hope it helps...window.onload = init; //first initialize the animation var el = document.getElementById("element"); //object function init() { blinking(); //blinking animation movement(); //movement animation } function movement() { TweenMax.to(el, 2, {x: 500, ease:Power0.easeOut, onComplete: stop}); } function blinking() { var tl = new TimelineMax({repeat: -1}); tl.to(el, 0.5, {alpha: 0}) .to(el, 0.5, {alpha: 1}); } //this will kill all the animation function stop() { TweenMax.killAll(); }
This is the codepen for you:
See the Pen vXQOYz by Waren_Gonzaga (@Waren_Gonzaga) on CodePen
GSAP Enthusiast
Waren- 2
-
Jonathan I need to call first the init function so that I will setup the positions of the elements and objects then it will call multiple functions with unique animations. I've tried to use onComplete event but it is only 1 function at time. I've tried this also...
TweenMax.set({onComplete: a}); TweenMax.set({onComplete: b}); TweenMax.set({onComplete: c});
But that's unprofessional.. is there any gsap method to call different animation at same time when the init functions is intialized.
-
Hello there, I am trying to call 3 different functions to animate 3 different animation in one shot through init() function. How I can achieve this properly.
function init() { TweenMax.set("#object", {alpha: 0}); a(); b(); c(); } function a() { TweenMax.to("#object1", {x: "+=100px"}); } function b() { TweenMax.to("#object2", {x: "+=200px"}); } function c() { TweenMax.to("#objec3", {x: "+=300px"}); }
Hopefully I will know the solution as soon as possible thanks gsap masters!
-
You're site is awesome buddy! Carl or Jack would help you about the animation that you want to achieve! My experience is not enough for that kind of stunning animation. Let's see what's Carl, Jonathan and Jack suggests about your animation request. Thanks!
GSAP Enthusiast,
Waren
- 1
-
So this url is kind of important to get a sense of what I'm trying to do. Don't know why it did not get included. Yeah I know. It's a evil Flash.
http://static.guim.co.uk/interactivestore/2015/6/19/1434714407690/113044/MERPreloader.swf
If that is url, can you please shortened in using goolge shortener so we can able to see what you're trying to do
- 1
-
Hello buddy!
Welcome to GSAP Forum!
I notice that you have no attachment or links on what you're talking about it is better to give the link or picture attached on your post thanks!
Anyway if you're looking for advance tweening or usage of timelinelite or max watch the video below!
GSAP Enthusiast,
Waren
- 1
-
Hello you should best answer the solution of Jonathan that's the right one and very flexible I recommend to use labels it would be great!
GSAP Enthusiast,
Waren
- 1
-
Hello buddy!
I'm back! Here's the forked codepen of yours...
My suggestion don't rely on css to manipulate your image. You can use the cssplugin of GSAP don't be confuse the cssplugin is built in on the gsap tweenmax. You should add plugin if you're using tweenlite. Please manipulate the element using the GSAP variables such as
menu_tl .to('.navbar', 0.5, { opacity: '1' }) .to(".big_image", 0.5, { css:{width: "300px", height: "140px"}, // you should use this for smooth animation. });
I've edited also your css and you must have a look to my forked pen of yours.
Codepen:
See the Pen YGEEbW by Waren_Gonzaga (@Waren_Gonzaga) on CodePen
Hope it helps!
GSAP Enthusiast!Waren
- 1
-
Hello @benedex82!
Welcome to GSAP Forum!
Please stand by while I am finding solution for your issue!
GSAP Enthusiast,
Waren
-
Such a cool project blake!
-
Thanks for the effort dude!
-
Is there any way to less this code?
var tl = new TimelineMax({delay: 1}), visible = 1, hidden = 0, aveDur = 1; tl.to("#txt1", aveDur, {alpha: visible}) .to("#txt1", aveDur, {alpha: hidden, delay: 1}) .to("#txt2", aveDur, {alpha: visible}) .to("#txt2", aveDur, {alpha: hidden, delay: 1}) .to("#txt3", aveDur, {alpha: visible}) .to("#txt3", aveDur, {alpha: hidden, delay: 1})
Any suggestions are welcome!
-
Hello buddy!
If you're using TimelineMax or TimelineLite and you want add little delay or similar to pause you can use this simple trick.
var tl = new TimelineMax(); tl.to("#object", 1, {alpha: 1}) .to("#object", 1, {alpha: 0, delay: 1}); //this will add 1 second delay before alpha 0
Hope it helps!
-
Dipscom thanks! for your suggestion! I really appreciate it!
- 1
-
oh I didn't notice that! thanks @Dipscom! You're awesome!
- 2
-
Hello Warren
right off the bat I you can first adjust the transform-origin so it is center left .. or 50℅ 0℅
the use rotation property which is the same as rotationZ in GSAP to swing the element like the desired effect you want to match.
I will look into this more when I'm at my computer
Hi @jonathan! I got it now! Thanks for the Idea here's the solution!
function swing() { TweenMax.set("#object", {transformOrigin: "center top"}); TweenMax.to("#object", 0.5, {rotation: "+=10"}); TweenMax.to("#object", 0.5, {rotation: "-=20", delay: 0.5}); TweenMax.to("#object", 0.5, {rotation: "+=15", delay: 0.5 * 2}); TweenMax.to("#object", 0.5, {rotation: "-=15", delay: 0.5 * 3}); TweenMax.to("#object", 0.5, {rotation: 0, delay: 0.5 * 4}); }
Here's the codepen!
-
Thanks @jonathan show me how! I am not able to adjust the origin for the rotation so I that's why I need help.
-
Hello guys! I need to know how to replicate this animation using GSAP only! I dont have any idea on how to achieve the animation from animate.css. If you have some suggestion please let me know. If you know how to do it please reply. I've used rotateZ but doesn't copy the animation!
Here's the codepen link:
Regards,Waren
See the Pen rrmXNZ by Waren_Gonzaga (@Waren_Gonzaga) on CodePen
-
Hi Flash-To-HTML5 and Welcome to GreenSock Forum!
Your topic is very helpful and related to Banner Animation. This should be pinned up in the banner section.
Plus sign preloader challenge!
in GSAP
Posted
Hey there! I made a quick coding for preloader... I am not as pro as you expected but I try to accept your awesome challenge!
Here's my work.,..
See the Pen xRadBR by Waren_Gonzaga (@Waren_Gonzaga) on CodePen
Here's my code: