CSS - Duda animación CSS

 
Vista:
sin imagen de perfil

Duda animación CSS

Publicado por Cristina (1 intervención) el 12/11/2017 17:49:17
Buenas tardes a todos, tengo una duda un poco tonta.

Estoy usando los efectos de animate.css al hacer hover a diferentes elementos.

Mi duda es;

Cuando pongo el mousse sobre el elemento hace el hover sin problema, pero al quitarlo vuelve a su sitio sin hacer ninguna transición, ¿Por qué hace esto? Necesito que tambien haga la transición de vuelta.

os dejo el código para que me digais.

gracias



HTML:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
='editor_code'><div class="col-sm-6 col-md-4">
 
	<div class="feature-box wow animated flipInX " data-wow-delay="0.3s">
		<div class="effect10 top-to-bottom">
		<div class="img"><img src="assets/img/design.svg" alt="" class="img-fluid"></div>
		<h2 class="wow desaparece">Diseño</h2>
		<h5 class="wow desaparece">"La alernativa a un buen diseño es un mal diseño, no existe el no diseño"</h5>
		</div>
 
		<div class="dtl   text-justify">
			<div class="borde hvr-reveal">
			<h2 class="text-center">Multilenguaje</h2>
			<h5 class="aparece">Los dispositivos móviles, hoy en día, se han convertido en un canal mas a tener en cuenta a la hora de vender en internet. El 90% de los usuarios de Smartphones utilizan sus teléfonos para informarse antes de comprar. En iootec, lo sabemos, por ello te damos soluciones responsive o móvil first que ofrecen un diseño de tiendas on-line visible y funcional desde cualquier plataforma.</h5></div>
 
		</div>
		</div>
	</div>
</div>





CSS

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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
.feature-box {
    overflow: hidden;
     position: relative;
    text-align: center;
    max-width: 370px;
    height: 300px;
    padding: 5px;
    margin-bottom: 10px;
    width: 100%;
 -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  transition: all 1s ease;
}
 
 
}
.feature-box .img:before {
  position: absolute;
  display: block;
  content: '';
  width: 100%;
  height: 100%;
 
  }
 
.effect10 .img {
  z-index: 11;
   -webkit-transform: translateY(0px) scale(1);
  -moz-transform: translateY(0px) scale(1);
  -ms-transform: translateY(0px) scale(1);
  -o-transform: translateY(0px) scale(1);
  transform: translateY(0px) scale(1);
 
  -
}
 
 
 
.feature-box p {
    padding: 0px 20px;
    font-size: 10px;
    opacity: 1;
 
 
 
}
 
.feature-box .dtl h2 {
    color:#FCFCFC;
    transition: color 0.4s linear 0.4s;
}
 
 
.feature-box .dtl {
     position: absolute;
     background: #FCFCFC;
    width: 100%;
    height: 85%;
    top: -100%;
    padding: 20px 15px 0 15px;
    left: 0;
    z-index: 2;
    overflow: auto;
    visibility: hidden;
    -webkit-transition: all 0.8s;
    -moz-transition: all 0.8s;
    -o-transition: all 0.8s;
    transition: all 0.8s;
 
}
.feature-box .borde {
     background: #DC1818;
    width: 100%;
    height: 100%;
    top: -100%;
    padding: 20px 15px 0 15px;
    left: 0;
 
    overflow: auto;
    visibility: hidden;
    -webkit-transition: all 0.8s;
    -moz-transition: all 0.8s;
    -o-transition: all 0.8s;
    transition: all 0.8s;
 
}
.feature-box:hover .dtl {
 
    top: 0;
    opacity: 1;
    visibility: visible;
}
 
.feature-box:hover .borde {
 
    top: 0;
    opacity: 1;
    visibility: visible;
}
.feature-box:hover .dtl h2 {
 
   color: #2882B5;
   z-index: 5;
}
.feature-box:hover img {
    -webkit-transform: translateY(145px) scale(0.5);
  -moz-transform: translateY(145px) scale(0.5);
  -ms-transform: translateY(145px) scale(0.5);
  -o-transform: translateY(145px) scale(0.5);
  transform: translateY(145px) scale(0.5);
   -webkit-transition: all 0.9s;
    -moz-transition: all 0.9s;
    -o-transition: all 0.9s;
    transition: all 0.9s;
    opacity: 1;
 
}
 
.feature-box h2 {
    margin: 0;
    padding: 15px 0px;
    font-weight:500;
    font-size: 13px;
}
 
h5 {
    margin: 0;
    padding:;
    font-size: 11px;
    font-weight:300;
 
}
.feature-box .dtl h5 {
    position: absolute;
    padding:10px;
    font-size: 11px;
    font-weight:300;
    z-index: 6;
}
.feature-box:hover .desaparece{
   -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
    -webkit-animation-name: fadeOutDown;
  animation-name: fadeOutDown;
}
 
@-webkit-keyframes fadeOutDownBig {
  0% {
    opacity: 1;
  }
 
  100% {
    opacity: 0;
    -webkit-transform: translate3d(0, 2000px, 0);
    transform: translate3d(0, 2000px, 0);
  }
}
 
@keyframes fadeOutDownBig {
  0% {
    opacity: 1;
  }
 
  100% {
    opacity: 0;
    -webkit-transform: translate3d(0, 2000px, 0);
    -ms-transform: translate3d(0, 2000px, 0);
    transform: translate3d(0, 2000px, 0);
  }
}
 
.feature-box:hover .aparece{
     -webkit-animation-duration: 1.3s;
  animation-duration: 1.3s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
   -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}
 
@-webkit-keyframes fadeInDownBig {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -2000px, 0);
    transform: translate3d(0, -2000px, 0);
  }
 
  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
 
@keyframes fadeInDownBig {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -2000px, 0);
    -ms-transform: translate3d(0, -2000px, 0);
    transform: translate3d(0, -2000px, 0);
  }
 
  100% {
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
  }
}
 
 
 
.hvr-reveal {
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px transparent;
}
.hvr-reveal:before {
  content: "";
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-color: #2098D1;
  border-style: solid;
  border-radius: 10%;
  border-width: 0;
  -webkit-transition-property: border-width;
  transition-property: border-width;
  -webkit-transition-duration: 0.1s;
  transition-duration: 0.1s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.hvr-reveal:hover:before, .hvr-reveal:focus:before, .hvr-reveal:active:before {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  border-width: 2px;
 
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de ScriptShow
Val: 571
Plata
Ha mantenido su posición en CSS (en relación al último mes)
Gráfica de CSS

Duda animación CSS

Publicado por ScriptShow (125 intervenciones) el 14/11/2017 13:45:21
Saludos,

es aconsejable depurar, simplificar, reducir código... (sólo es una idea).

Se pueden declarar las transiciones para "todo". Veamos un ejemplo:

1
2
3
4
5
6
7
8
9
<style>
* {
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-ms-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
}
</style>

En caso de precisar una transición y/o efecto concreto, se declara en la classe del objeto - elemento.

Espero sea útil.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar