Copy link to clipboard
Copied
<script>
var clickTag = '[@http://@]';
var moreDetails = '[@http://2@]';
</script>
<script>
moreDetailsArea.addEventListener("click", onDetailsClick);
function onDetailsClick() {
window.open(window.moreDetails, "_blank");
}
var tl = new TimelineMax({paused: true});
tl
.to('#box1-container', 0.75, {x: 170}, 0)
.to('#box1', 0.75, {x: -170}, 0)
.to('#box1-container', 0.5, {y: -67}, 0.7)
.to('#box1', 0.5, {y: 67}, 0.7)
.to('#box2-container', 0.75, {x: -159}, 1.15)
.to('#box2', 0.75, {x: 159}, 1.15)
.to('#box2-container', 0.5, {y: 56}, 1.85)
.to('#box2', 0.5, {y: -56}, 1.85)
.to('#c1', 0.5, {opacity: 0}, 2.5)
.to('#c2', 0.5, {opacity: 1}, 3)
.to('#c2', 0.5, {opacity: 0}, 5)
.to('#c3', 0.5, {opacity: 1}, 5.5)
.set('#replay', {x: -24}, 8.5)
.to('#ef', 0.5, {opacity: 1}, 8.5)
.to('#cta', 0.5, {opacity: 1}, 8.5)
.to('#partnerLogo', 0.5, {opacity: 1}, 8.5)
.to('#moreDetailsArea', 0.01, {display: "block"}, 8.5)
.to('#replay', 0.5, {opacity: 1}, 8.5)
.to('#replay', 0.5, {opacity: 1}, 8.5)
;
function playBanner(){
tl.play();
}
function replayPressed(){
tl.restart();
}
document.getElementById("replay").addEventListener("click", replayPressed);
</script>
Copy link to clipboard
Copied
that's javascript, not as3
Find more inspiration, events, and resources on the new Adobe Community
Explore Now