-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
67 lines (48 loc) · 1.49 KB
/
Copy pathmain.js
File metadata and controls
67 lines (48 loc) · 1.49 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
let ListaCD=
[
{
img:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLI5_xFQd7qK3nY1gf6xVFPaOekvlYHNoqyQ&usqp=CAU",
title:"💛 1- Intro",
},
{
img:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLI5_xFQd7qK3nY1gf6xVFPaOekvlYHNoqyQ&usqp=CAU",
title:"💛 2- variables",
},
{
img:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLI5_xFQd7qK3nY1gf6xVFPaOekvlYHNoqyQ&usqp=CAU",
title:"💛 3-Funciones",
},
{
img:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLI5_xFQd7qK3nY1gf6xVFPaOekvlYHNoqyQ&usqp=CAU",
title:"💛 4-Arrays",
},
];
let DomCards= document.getElementById("DomCards");
function printCards(object){
DomCards.innerHTML += `
<div class="swiper-slide">
<img src="${object.img}"
<div class="container-bnt"> <button class="btn">${object.title}</button> </div>
</div>
`
}
function loadCards(){
ListaCD.forEach((object)=> printCards(object));
}
loadCards();
var swiper = new Swiper(".mySwiper", {
effect: "coverflow",
grabCursor: true,
centeredSlides: true,
slidesPerView: "auto",
coverflowEffect: {
rotate: 50,
stretch: 0,
depth: 100,
modifier: 1,
slideShadows: true,
},
pagination: {
el: ".swiper-pagination",
},
});