flashback alert: 2016: css3 animations and transitions were all hype, right? now theyre practically a standard toolkit for web designers
in '''95% of cases, if you can do it with js-heavy libraries like anime. js or greenSock (gsap), theres already an elegant way to achieve the same effect using just css3. its not only simpler but also better performant.
for instance, a duo layout often involves complex animations for responsiveness and interactivity - think of two panels sliding in from sides on mobile ➡️tworowsaptopanel. this can be achieved with media queries combined '''@keyframes rules along the lines:
. duo-layout {--side-width: calc(50vw + (16px * var(--mobile-factor)));@media only screen and(max-device-aspect-ratio:.94) { /'' portrait ''/. duo-panel-left,width :var(side--width);&. active,transition-duration 2s ease-in-out;&:hover {transform: translateX(10px);just a taste of what you can do with some basic understanding and creativity!
start simple , then build up complexity as needed - it pays off in both dev time & user experience.