Using Functions to Build a timeline - Broken

Developer
Size
1,831 Kb
Views
10,120

How do I make an using functions to build a timeline - broken?

What is a using functions to build a timeline - broken? How do you make a using functions to build a timeline - broken? This script and codes were developed by Pedro Tavares on 01 December 2022, Thursday.

Using Functions to Build a timeline - Broken Previews

Using Functions to Build a timeline - Broken - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Using Functions to Build a timeline - Broken</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="box01"></div>
<div id="box02"></div>
<div id="box03"></div>
<div id="box04"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/gsap/1.16.1/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Using Functions to Build a timeline - Broken - Script Codes CSS Codes

div { position: absolute; width: 100px; height: 100px; background-color: red;
}
#box01 { top: 0; left: 0;
}
#box02 { top: 105px; left: 0;
}
#box03 { top: 210px; left: 0;
}
#box04 { top: 315px; left: 0;
}

Using Functions to Build a timeline - Broken - Script Codes JS Codes

var dur = 1, tl = new TimelineMax({repeat:-1}); tl.to(box01, dur, {x:"+=60%"}); tl.add(buildSection01); tl.to(box03, dur, {x:"+=60%"}); tl.add(altBuildSection02);
function buildSection01() { buildSection(box02);
}
function altBuildSection02() { altBuildSection(box04);
}
function buildSection(el) { tl.to(el, dur, {x:"+=50%"} );
}
function altBuildSection(el) { TweenMax.to(el, dur, {x:"+=50%"} );
}
Using Functions to Build a timeline - Broken - Script Codes
Using Functions to Build a timeline - Broken - Script Codes
Home Page Home
Developer Pedro Tavares
Username dipscom
Uploaded December 01, 2022
Rating 3
Size 1,831 Kb
Views 10,120
Do you need developer help for Using Functions to Build a timeline - Broken?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Pedro Tavares (dipscom) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!