Код: Выделить всё
@keyframes grow {
from {
transform: scale(1);
}
to {
transform: scale(1.1);
}
}
@keyframes shrink {
from {
transform: scale(1.1);
}
to {
transform: scale(1);
}
}
$duration: 0.5s;
$animationFillMode: both;
&:not(.active):hover, &.active {
img {
animation: grow $duration $animationFillMode;
}
}
&:not(.active) {
img {
animation: shrink $duration $animationFillMode;
}
}
Возможно ли это?
Подробнее здесь: https://stackoverflow.com/questions/676 ... last-frame
Мобильная версия