-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathscript.js
More file actions
28 lines (23 loc) · 926 Bytes
/
Copy pathscript.js
File metadata and controls
28 lines (23 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var animationDetail = animtaionData.slice(0);
console.log(animationDetail);
window.addEventListener("load", getanimation());
function getanimation() {
let animationContainer = document.getElementsByClassName("container")[0];
let output = "";
for(let i=0;i<animationDetail.length;++i){
output += `
<div class="animationcards">
<a href=${animationDetail[i].AnimationURL} class="hoverEffect"
target="_blank">
<div class="img-box">
<img class="animateCardImg" src=${animationDetail[i].AnimationGif} alt="Animation Gif">
</div>
<h2 class="Conrtibutor"><a href=${animationDetail[i].ContributorURL}><span>${animationDetail[i].ContributorName}</span></a></h2>
</a>
</div>`
}
console.log(output);
console.log(animationContainer);
animationContainer.innerHTML = output;
}
//Testing some changes