Bonjour,
Merci du conseil, je serai plus prudent désormais...
Alors voilà j'ai de nouveau retravaillé le coverflow et je ne parviens pas à faire en sorte que les différents thèmes soient actifs. Je dois sûrement me tromper dans le code html mais j'ai beau chercher sur internet, je ne trouve pas.
mon html:
Code:
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 <li><a href="#theme 1">Thème 1</a> <a href="#theme 2">Thème 2</a> <a href="#theme 3">Thème 3</a> </li> <div id="conteneur"> <div id="coverflow"> <#theme 1> <img src="http://placehold.it/350x350/E80000/FFFFFF" /> <img src="http://placehold.it/350x350" /> <img src="http://placehold.it/350x350/E8117F/FFFFFF" /> <img src="http://placehold.it/350x350" /> <img src="http://placehold.it/350x350/E8117F/FFFFFF" /> <img src="http://placehold.it/350x350" /> <img src="http://placehold.it/350x350/E8117F/FFFFFF" /> <img src="http://placehold.it/350x350" /> <img src="http://placehold.it/350x350/E8117F/FFFFFF" /> <img src="http://placehold.it/350x350" /> <img src="http://placehold.it/350x350/E8117F/FFFFFF" /> <img src="http://placehold.it/350x350" /> <img src="http://placehold.it/350x350/E80000/FFFFFF" /> </#theme> <#theme 2> <img src="http://placehold.it/350x350" /> <img src="http://placehold.it/350x350/E80000/FFFFFF" /> </#theme> <#theme 3> <img src="http://placehold.it/350x350" /> <img src="http://placehold.it/350x350/E80000/FFFFFF" /> </#theme> </div> </div>
mon js:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14 $(function() { $('#coverflow').coverflow({ active: 2, select: function(event, ui){ console.log('here'); } }); $('#coverflow img').click(function() { if( ! $(this).hasClass('ui-state-active')){ return; } $('#coverflow').coverflow('next'); }); });
mon css:
Code:
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 a { font-family: raleway, time, sans-serif; font-weight: bold; font size: 18px; font-variant: small-caps; text-align: center; text-decoration:none; color: #550266; } a{ outline: 0px solid black; padding: 10px 10px ; border: 5px solid transparent; } a:hover { color: #250035; outline: 0px solid transparent; padding: 10px 10px ; border: 2px solid #250035; } #conteneur { width: 900px; height:600px; margin: 2em auto; border: 1px solid #212121; } img { -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(70%, transparent) , to(rgba(250, 250, 250, 0.1))); }
vous remarquerez également des changement dans le css, par contre j'ai voulu installé un effet de réflexion mais il ne fonctionne pas...
Merci pour vos conseils
novis