Carmen Ansio PRO
Design Engineer at LottieFiles
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@media (prefers-reduced-motion: no-preference) {
/* tus animaciones chingonas */
}
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@keyframes grow {
0% {
transform: scale(1);
}
100% {
transform: scale(2);
}
}
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
.fill {
animation: progress linear forwards;
animation-timeline: scroll();
}
@keyframes progress {
from {
stroke-dasharray: 0px 1px;
}
to {
stroke-dasharray: 1px 1px;
}
}
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
img {
animation: 2s infinite alternate zoomin;
}
@keyframes zoomin {
from {
margin-left: 100%;
width: 300%;
}
to {
margin-left: 0%;
width: 100%;
}
}
@carmenansio
@carmenansio
@carmenansio
@keyframes zoomin {
from {
margin-left: 100%;
width: 0%;
}
to {
margin-left: 0%;
width: 50%;
}
}
@carmenansio
img {
animation: zoomin 2s infinite alternate;
}
@carmenansio
img {
animation: zoomin linear both;
animation-timeline: scroll();
}
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
animation-timeline: scroll();
animation-timeline: view();
@carmenansio
@carmenansio
img {
width: 100%;
aspect-ratio: 16/9;
object-fit: cover;
// timeline
view-timeline-name: --image;
view-timeline-axis: block;
// animation
animation-timeline: --image;
animation-name: scroll;
// range
animation-range: entry 25% cover 30%;
animation-fill-mode: both;
}
@carmenansio
@carmenansio
@carmenansio
https://webstatus.dev/features/scroll-driven-animations?q=scroll+driven
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@carmenansio
timeline-scope: --question-block, --world, --mario;
@carmenansio
@carmenansio
@carmenansio
@carmenansio
@warkentien2
@warkentien2
@warkentien2
@warkentien2
@warkentien2
@carmenansio
@warkentien2
@carmenansio
@carmenansio
@bramus
@argyleink
@una
@carmenansio
By Carmen Ansio
Presentation slides for 'Scroll-Enhanced Experiences' at CSS Day 2024