kram66
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by kram66
-
-
I have a number of elements on the page I would like to animate off before moving to the next page.
-
That's awesome.. Since I'm really new to this.. How do I amend this code to include additional elements?
var tween = TweenLite.to(".hire", 1, {x: -460, paused: true, onComplete: startSlide}) -
-
I'm really new to javascript and TweenMax and I'm not really sure if my question is a javascript or tweenmax question, but happy if somebody can put me on the right track.
<a href="#" id="info" class="info" onclick="myFunction()">
<span class="plus"></span> About Me
</a>$(document).ready(function(){
$(".begin").on("click",function(){
TweenMax.to("#logo",1,{bottom:1200,opacity:0, ease:Back.easeIn},0.5);
TweenMax.to(".hire",0.6,{left:1000,opacity:0, ease:Back.easeIn},0.2);
TweenMax.to(".info",1.3,{right:1000,opacity:0, ease:Back.easeIn},0.2);
TweenMax.to("hr",0.4,{bottom:1000,opacity:0, ease:Back.easeIn},0.2);
TweenMax.to("#nav-icon1",0.5,{top:1000,opacity:0, ease:Back.easeIn},0.2);
TweenMax.to("#topright",0.5,{left:1000,opacity:0, ease:Back.easeIn},0.2);
TweenMax.to(".social",0.5,{left:1000,opacity:0, ease:Back.easeIn},0.2);//Complete this animation before moving into the slider????
$(".sec-A").addClass("showing");
$(".head").hide();
});
$(".down").on("click",function(){
$(".head").addClass("head-hide");
});
$(".home").on("click",function(){
$(".side").removeClass("showing");
});
$(".code-btn").on("click",function(){
$(".sec-B").addClass("showing");
});
$(".back-btn").on("click",function(){
$(".sec-B").removeClass("showing");
});
});
Complete Animation before slider
in GSAP
Posted
Something like this?