Bonjour,
Je cherche à mettre une image (fixe) sur un fond animé.
Mais rien apparaît (je parle de "zozo", l'image fixe)
Alors, monet mes CSS :
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 <div id="imgtourne" class="image3"><img src="images/fontourne.jpg" alt="affiche" class="imgtourne"></div> <div class="imgtourne><div>class="zozo><img src="images/zozo.png"></div>
Figcation, car à l'origine, sur l'image en premier plan, il y avait une figcation (que j'aimerais conserver si cela est possible).
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
68
69
70
71
72
73
74 #imgtourne { overflow: hidden; height: 500px; width: 380px; position: relative; } figure { margin: 0; } .imgtourne { width: 200%; height:100%; margin-left: -50%; transform-origin: center; transform: scale(2); animation: spin 4s linear infinite;; position: absolute; } @-webkit-keyframes spin { 100% { -webkit-transform: scale(2) rotate(360deg); } } @keyframes spin { 100% { transform: scale(2) rotate(360deg); } } .zozo {z-index: 9999999; background-image: url("../images/zozo.png");} .titre_psyche {color: white; font-size: 10em; text-shadow: #FF69B4 10px 0 10px; letter-spacing: .2rem; text-align: center; display: block;} .vignettes { width: 100%;} figure { position: relative; display: inline-block; overflow: hidden; margin: 0; } figcaption { position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; cursor: pointer; text-align: center; vertical-align: text-bottom; color: black; background-color : rgba(0,0,0,0.5); padding-top: 30%; font-family: 'clovis_cheuryregular', Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", "serif"; opacity: 0; transition: opacity 1s ease; font-size: 3em; } figure:hover figcaption { opacity: 1; }
Pour résumer : une image détourée avec figcaption avec derrière un fond animé.
Merci pour votre aide
ED
Partager