Toggle navigation
Sign Up
Log In
Explore
Works
Folders
Tools
Collections
Artists
Groups
Groups
Topics
Tasks
Tasks
Jobs
Teams
Jobs
Recommendation
More Effects...
JS
/* a Pen by DIACO */ var Doc = document , TwL = TweenLite , E0=Sine.easeInOut , E1=Sine.easeIn , E2=Sine.easeOut B = Doc.getElementById('B') , UB = Doc.getElementById('UB') , F = Doc.getElementById('FF') , H = Doc.getElementById('HF') ; TwL.set('svg',{opacity:1}); TwL.set(B,{y:10}); TwL.set(UB,{fill:'#151515',transformOrigin:'50% 100%'}); TwL.set(H,{transformOrigin:'-5px 0px',rotation:-10,fill:'#454545',y:-1}); TwL.set(F,{transformOrigin:'55% 10px',rotation:-37,fill:'#DC0026'}); TwL.set('#H',{transformOrigin:'5px 50px',fill:'#454545',scale:0.967,rotation:-5}); TwL.set('.H1',{rotation:-20,transformOrigin:'0px 5px',y:-5}); TwL.set('.H2',{transformOrigin:'10% 0%',rotation:-10,y:-1.5,scaleY:1.03}); TwL.set('.F1',{transformOrigin:'21px 2px'}); TwL.set('.F2',{transformOrigin:'25px 0px'}); TwL.set('.F3',{transformOrigin:'4.2px 4.2px'}); var F2 = F.cloneNode(true) , H2 = H.cloneNode(true); F2.id = 'FB'; H2.id = 'HB'; B.insertBefore(F2,UB); B.insertBefore(H2,F2); TwL.set('.FB',{fill:'#DC0026'}); TwL.set('#FB',{fill:'#A50018'}); TwL.set('#HB',{y:-3,fill:'#333'}); function M(p1,p2){ var tl = new TimelineMax({repeat:-1}) .add("l1",0).add("l2",.25).add("l3",.5).add("l4",.75).add("l5",1) .to(p1,.5,{rotation:27,ease:E0},'l1') .to(p1,.25,{rotation:-37,ease:E1},'l3') .to(p1+' .F1',.25,{rotation:15,ease:E0},'l2') .to(p1+' .F1',.25,{rotation:80,ease:E1},'l3') .to(p1+' .F1',.25,{rotation:0,ease:E2},'l4') .to(p1+' .F2',.25,{rotation:45,repeat:1,yoyo:true},'l3') .to(p1+' .F3',.25,{rotation:-35,repeat:1,yoyo:true,scaleX:.925},'l2') .to(p2,.5,{rotation:25,ease:E0,yoyo:true,repeat:1},'l1') .to(p2+' .H1',.5,{rotation:15,ease:E0,yoyo:true,repeat:1},'l1') .to(p2+' .H2',.5,{rotation:0,ease:E0,yoyo:true,repeat:1},'l1'); return tl; }; var MTl = new TimelineLite() .add(M('#FF','#HB')).add(M('#FB','#HF'),0.5) .to(B,.25,{y:'+='+-20,repeat:-1,yoyo:true,ease:E0},0) .to('#H',.25,{rotation:5,repeat:-1,yoyo:true,ease:E0},0) .to('#mSH',.25,{scaleX:.6,repeat:-1,yoyo:true,ease:E1,transformOrigin:'center'},0) .time(.5); /* a Pen by DIACO : twitter.com/Diaco_ml || codepen.io/MAW */
CSS
@import url(https://fonts.googleapis.com/css?family=Oswald); html, body { width: 100%; height: 100%; padding: 0px; margin: 0px; } body { background-color: #efefef; background: radial-gradient(rgb(255, 255, 255), rgb(200, 200, 200)); } svg { opacity: 0; overflow: visible; position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%); } #text { position: absolute; left: 50%; top: 20px; width: 100%; transform: translate(-50%, 0%); font-family: 'Oswald', arial; color: #ED002E; font-size: 50px; font-size: 5.5vw; text-align: center; white-space: nowrap; } #text span { color: #444; font-size: 30px; font-size: 3.5vw; } #links { position: absolute; bottom: 0px; left: 0px; width: 100%; height: 50px; font-size: 13px; font-family: tahoma; color: #000; } #links a { text-decoration: none; font-size: 2.3em; color: #000; } #twitter { position: absolute; bottom: 20px; right: 30px; } #pens { position: absolute; bottom: 20px; left: 30px; } #back { position: absolute; left: 50%; top: 50%; width: 90%; transform: translate(-50%, -50%); font-family: arial; color: rgba(0, 0, 0, 0.1); font-size: 50px; font-size: 10vw; text-align: center; white-space: nowrap; }
HTML
Just Keep Going
Join Effecthub.com
Working with Global Gaming Artists and Developers!
Login
Sign Up
Or Login with Your Email Address:
Email
Password
Remember
Or Sign Up with Your Email Address:
Your Email
This field must contain a valid email
Set Password
Password should be at least 1 character
Stay informed via email