Разбираемся в CSS
Anonymous
Пульсирующая сердечная анимация CSS
Сообщение
Anonymous » 24 май 2025, 22:12
Я работаю над анимированным сердцем только с CSS.
Код: Выделить всё
small ==> big ==> small ==> repeat animation
< /code>
Что я ичу: < /p>
small ==> big ==> small ==> big ==> small ==> pause ==> repeat animation
< /code>
Как это сделать?#button{
width:450px;
height:450px;
position:relative;
top:48px;
margin:0 auto;
text-align:center;
}
#heart img{
position:absolute;
left:0;
right:0;
margin:0 auto;
-webkit-transition: opacity 7s ease-in-out;
-moz-transition: opacity 7s ease-in-out;
-o-transition: opacity 7s ease-in-out;
transition: opacity 7s ease-in-out;}
@keyframes heartFadeInOut {
0% {
opacity:1;
}
14% {
opacity:1;
}
28% {
opacity:0;
}
42% {
opacity:0;
}
70% {
opacity:0;
}
}
#heart img.top {
animation-name: heartFadeInOut;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
animation-duration: 1s;
animation-direction: alternate;
}< /code>
[img]https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Heart_coraz%C3%B3n.svg/2000px-Heart_coraz%C3%B3n.svg.png[/img]
[img]https://media0.giphy.com/media/VlzUkJJzvz0UU/200_s.gif[/img]
См. Также
эта скрипкая .
Подробнее здесь:
https://stackoverflow.com/questions/347 ... -animation
1748113977
Anonymous
Я работаю над анимированным сердцем только с CSS.[code]small ==> big ==> small ==> repeat animation < /code> Что я ичу: < /p> small ==> big ==> small ==> big ==> small ==> pause ==> repeat animation < /code> Как это сделать?#button{ width:450px; height:450px; position:relative; top:48px; margin:0 auto; text-align:center; } #heart img{ position:absolute; left:0; right:0; margin:0 auto; -webkit-transition: opacity 7s ease-in-out; -moz-transition: opacity 7s ease-in-out; -o-transition: opacity 7s ease-in-out; transition: opacity 7s ease-in-out;} @keyframes heartFadeInOut { 0% { opacity:1; } 14% { opacity:1; } 28% { opacity:0; } 42% { opacity:0; } 70% { opacity:0; } } #heart img.top { animation-name: heartFadeInOut; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-duration: 1s; animation-direction: alternate; }< /code> [img]https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Heart_coraz%C3%B3n.svg/2000px-Heart_coraz%C3%B3n.svg.png[/img] [img]https://media0.giphy.com/media/VlzUkJJzvz0UU/200_s.gif[/img] [/code] См. Также [b] эта скрипкая [/b]. Подробнее здесь: [url]https://stackoverflow.com/questions/34762009/pulsing-heart-css-animation[/url]
Пульсирующая сердечная анимация CSS
Anonymous »
04 май 2025, 14:16 » в форуме
Html
Я работаю над анимированным сердцем только с CSS. small ==> big ==> small ==> repeat animation
Что я ичу:
small ==> big ==> small ==> big ==> small ==> pause ==> repeat animation
Как это сделать?#button{
width:450px;
height:450px;...
0 Ответы
1 Просмотры
Последнее сообщение Anonymous
04 май 2025, 14:16
Пульсирующая сердечная анимация CSS
Anonymous »
04 май 2025, 14:16 » в форуме
CSS
Я работаю над анимированным сердцем только с CSS. small ==> big ==> small ==> repeat animation
Что я ичу:
small ==> big ==> small ==> big ==> small ==> pause ==> repeat animation
Как это сделать?#button{
width:450px;
height:450px;...
0 Ответы
5 Просмотры
Последнее сообщение Anonymous
04 май 2025, 14:16
Пульсирующая сердечная анимация CSS
Anonymous »
04 май 2025, 15:33 » в форуме
Html
Я работаю над анимированным сердцем только с CSS. small ==> big ==> small ==> repeat animation
Что я ичу:
small ==> big ==> small ==> big ==> small ==> pause ==> repeat animation
Как это сделать?#button{
width:450px;
height:450px;...
0 Ответы
3 Просмотры
Последнее сообщение Anonymous
04 май 2025, 15:33
Пульсирующая сердечная анимация CSS
Anonymous »
24 май 2025, 22:12 » в форуме
Html
Я работаю над анимированным сердцем только с CSS. small ==> big ==> small ==> repeat animation
Что я ичу:
small ==> big ==> small ==> big ==> small ==> pause ==> repeat animation
Как это сделать?#button{
width:450px;
height:450px;...
0 Ответы
1 Просмотры
Последнее сообщение Anonymous
24 май 2025, 22:12
Пульсирующая сердечная анимация CSS
Anonymous »
24 май 2025, 22:12 » в форуме
CSS
Я работаю над анимированным сердцем только с CSS. small ==> big ==> small ==> repeat animation
Что я ичу:
small ==> big ==> small ==> big ==> small ==> pause ==> repeat animation
Как это сделать?#button{
width:450px;
height:450px;...
0 Ответы
0 Просмотры
Последнее сообщение Anonymous
24 май 2025, 22:12