Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
How to build an animated CSS penguin comes down to three layers: semantic HTML for the parts, CSS shapes for the drawing, and @keyframes for motion. You do not need JavaScript or an image file for a simple bobbing and wing-flapping character. This tutorial builds a responsive penguin that stays centered, scales with its container, and turns off continuous motion when a visitor requests reduced motion.
You will finish with a single HTML document you can paste into a file and open in a browser. The examples use ordinary elements, border-radius, positioning, transforms, and CSS animation properties, so each part remains easy to inspect and change.
As an Amazon Associate I earn from qualifying purchases.
What will you build, and what do you need first?
The finished illustration is a penguin assembled from a parent element and child elements for its body, belly, eyes, beak, wings, and feet. A modern browser, a plain-text editor, and a folder for one HTML file are enough. No framework, build step, image editor, or JavaScript dependency is required.
MDN describes the central idea succinctly: “CSS animations make it possible to animate transitions from one CSS style configuration to another.” The MDN guide to using CSS animations explains that @keyframes lists visual states while the animation property controls how the browser moves between them.
Popular on Amazon
- 【90 Degree Full Function USB C Adapter】Supports the latest USB4 standard for up to 40Gbps of bandwidth, 8K video support, and up to 240W Fast charging; Support USB PD 3.1 Extended Power Range (EPR) including 140W, 180W and 240W. Your productivity is easily doubled. *Warm Tip: For the best fit, please make sure the USB-C port is fully exposed; thick or bulky cases may affect compatibility.
- 【Reliable Quality】Made from high-quality, scratch-resistant aluminum alloy, delicate metal frame. get excellent wear resistance and heat dissipation. Non-Slip Design for easier insertion and removal.
- 【Small and portable】Ultra thin size, ultra compact design, a petite physique that matches the minimalist design of your modern laptops. Coming with a slim figure that won't block the port next to the one it's plugged into.
- 【Compatibility】Widely work with most usb c, thunderbolt 4/3 devices. Compatibilit for ROG Ally, Steam Deck, Switch, MacBook Pro, Quest 3 VR headset, Surface Book 2, iPhone 18/17/16/15, Samsung Galaxy S23/S22/S21, Note 20/10, Google Pixel, ChromeBook, etc.
- 【Excellence Customer Support】If you experience any issues or cable failure, simply reach out to our dedicated customer service team. We provide a prompt response within 18 hours, providing you with the necessary technical support to resolve any concerns.
Create a file named penguin.html. You can begin with the small structure below, then add the style sheet in the following sections. Keeping the parts as separate elements makes it possible to animate one wing without moving the whole character.
How should the HTML be structured?
Use one scene container and one element that represents the complete character. Each visible part gets a descriptive class. The role='img' and aria-label make the whole illustration one announced object when it conveys information; if the drawing is purely decorative beside equivalent text, use aria-hidden='true' instead and omit the label.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →<main class='scene'>
<div class='penguin' role='img' aria-label='A cartoon penguin'>
<div class='penguin__body'>
<div class='penguin__belly'></div>
<div class='penguin__face'>
<span class='penguin__eye penguin__eye--left'></span>
<span class='penguin__eye penguin__eye--right'></span>
<span class='penguin__beak'></span>
</div>
<span class='penguin__wing penguin__wing--left'></span>
<span class='penguin__wing penguin__wing--right'></span>
<span class='penguin__foot penguin__foot--left'></span>
<span class='penguin__foot penguin__foot--right'></span>
</div>
</div>
</main>
The outer .penguin is the positioning context and the animated object. The inner body provides a stable silhouette. Small details are positioned inside that body rather than against the viewport, so they remain attached when the character changes size.
How do you make the scene responsive?
Center the character with grid or flexbox, give it a maximum size, and let its width shrink with the available space. Relative percentages keep the facial features and feet proportional. Avoid assigning every part a fixed viewport coordinate; that approach often clips the drawing on a phone or leaves details detached at a different width.
* {
box-sizing: border-box;
}
:root {
--ink: #1f2937;
--belly: #f8fafc;
--beak: #f59e0b;
--foot: #f97316;
--scene: #dbeafe;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: var(--scene);
}
.scene {
min-height: 100vh;
display: grid;
place-items: center;
padding: 2rem 1rem;
overflow: hidden;
}
.penguin {
position: relative;
width: clamp(10rem, 55vw, 18rem);
aspect-ratio: 4 / 5;
}
.penguin__body {
position: absolute;
inset: 0;
}
clamp() supplies a lower limit, a fluid preferred width, and an upper limit. The character therefore grows with a roomy layout but cannot become so large that it overwhelms the scene. The aspect-ratio keeps a predictable canvas for the percentage-based parts. On a narrow phone, the scene padding and minimum width prevent the penguin from touching the viewport edge.
How do you draw the penguin’s silhouette?
CSS shapes start with ordinary boxes. A large border-radius turns the body into an oval, while smaller rounded boxes create the belly, wings, and feet. MDN demonstrates the same principle for circles and other shapes in its animation property reference, where transforms reposition elements without requiring an image asset.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →.penguin__body {
position: absolute;
inset: 0;
background: var(--ink);
border-radius: 48% 48% 44% 44% / 42% 42% 56% 56%;
overflow: visible;
}
.penguin__belly {
position: absolute;
inset: 20% 12% 15%;
background: var(--belly);
border-radius: 48% 48% 45% 45% / 42% 42% 58% 58%;
}
.penguin__face {
position: absolute;
top: 12%;
left: 20%;
width: 60%;
height: 28%;
background: var(--belly);
border-radius: 50%;
}
.penguin__eye {
position: absolute;
top: 28%;
width: 12%;
aspect-ratio: 1;
background: #111827;
border-radius: 50%;
}
.penguin__eye--left {
left: 27%;
}
.penguin__eye--right {
right: 27%;
}
.penguin__beak {
position: absolute;
left: 42%;
top: 58%;
width: 16%;
height: 18%;
background: var(--beak);
clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.penguin__wing {
position: absolute;
top: 36%;
width: 25%;
height: 39%;
background: var(--ink);
border-radius: 70% 30% 65% 35% / 35% 35% 65% 65%;
}
.penguin__wing--left {
left: -8%;
transform-origin: 85% 15%;
}
.penguin__wing--right {
right: -8%;
transform-origin: 15% 15%;
}
.penguin__foot {
position: absolute;
bottom: -3%;
width: 31%;
height: 12%;
background: var(--foot);
border-radius: 70% 70% 45% 45%;
}
.penguin__foot--left {
left: 14%;
transform: rotate(8deg);
}
.penguin__foot--right {
right: 14%;
transform: rotate(-8deg);
}
The body and belly use percentage insets, so changing the parent width scales every measurement together. The face is a separate light oval layered above the belly. The beak uses clip-path for a triangle; if you prefer to avoid it, replace that rule with a small rounded orange element and adjust its height. The wings extend slightly beyond the body, which gives the character a readable outline while the scene’s overflow: hidden prevents accidental page-wide scrollbars.
Also popular on Amazon
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Absolute positioning is appropriate for these small details because the parent has a known aspect ratio. If you later add a scarf, hat, or sign with more complex text, a nested flex or grid layout may be clearer than adding more coordinates.
How do you add the bobbing animation?
Start with one restrained movement on the complete character. The following keyframes define a neutral pose at the beginning and end and a slightly raised pose halfway through the cycle.
.penguin {
animation: penguin-bob 1.8s ease-in-out infinite;
}
@keyframes penguin-bob {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-0.35rem);
}
}
In this shorthand, 1.8s is the duration, ease-in-out controls the pacing, infinite repeats the sequence, and penguin-bob names the keyframe list. You can write keyframes with from and to, or with percentages when you need intermediate poses. The MDN animation documentation covers duration, timing, iteration count, and direction as separate controls.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesA small vertical translation reads as breathing or buoyant movement. Keep the distance modest; a large jump can make the feet appear to leave the ground and can be uncomfortable for some viewers. The values here are a starting point, not a universal setting. Adjust the duration and distance to match the surrounding design.
How do you animate the wings without breaking the body motion?
Animate each wing on its own element and choose a transform origin near the shoulder. The keyframes below rotate the wings around that edge. Because the left and right wings have separate sequences, they can mirror one another without changing the body’s position.
.penguin__wing--left {
animation: wing-left 1.8s ease-in-out infinite alternate;
}
.penguin__wing--right {
animation: wing-right 1.8s ease-in-out infinite alternate;
}
@keyframes wing-left {
from {
transform: rotate(18deg);
}
to {
transform: rotate(-8deg);
}
}
@keyframes wing-right {
from {
transform: rotate(-18deg);
}
to {
transform: rotate(8deg);
}
}
alternate reverses the direction on each repeating iteration, producing a back-and-forth flap instead of snapping from the final pose to the first pose. Matching the first and last states is another way to create a seamless loop when a movement should travel in one direction and return. The MDN CSS animations overview explains this direction behavior and the relationship between keyframes and repeated iterations.
Do not put a second transform declaration on the same wing unless the keyframes include both effects. A keyframe transform replaces the element’s current transform for that frame. If a foot already has a permanent rotation, either leave it static or include the rotation in its own keyframes.
Also popular on Amazon
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
How do you respect reduced-motion preferences?
Provide a static pose when the operating system or browser requests less motion. MDN warns that blinking and some kinds of motion can affect people with cognitive concerns and may trigger vestibular disorders, epilepsy, migraine, or scotopic sensitivity. The prefers-reduced-motion media feature lets your CSS respond to that preference.
@media (prefers-reduced-motion: reduce) {
.penguin,
.penguin__wing--left,
.penguin__wing--right {
animation: none;
}
}
Removing the animation leaves the drawing visible and usable instead of hiding the character. Avoid flashing effects altogether. If motion communicates an essential state, provide a non-moving cue such as text, color, or an icon as well. The accessibility guidance and related feature are documented in MDN’s animation reference and CSS animations guide.
Why should movement use transforms instead of changing layout properties?
For a bob, slide, or rotation, animate transform rather than repeatedly changing top, left, width, or height. MDN notes that box-model animation can cause layout reflow and repaints; transforms describe visual movement without asking the layout engine to recalculate neighboring geometry on every frame.
This is a practical preference, not a rule that every animation must use transforms. A deliberate size change may be the effect you want, but use it knowingly and keep the affected area small. Do not animate a parent’s dimensions merely to make a child appear to move when a translation would communicate the same idea.
Free tools Windows power users keep installed
One-click scans. No signup required.
There is one easy-to-miss detail when experimenting with inline content: transforms do not affect ordinary non-replaced inline-level content. If you animate a text label or a span, set it to a suitable display type first:
.wiggle-label {
display: inline-block;
animation: label-wiggle 900ms ease-in-out infinite alternate;
}
@keyframes label-wiggle {
from { transform: rotate(-3deg); }
to { transform: rotate(3deg); }
}
The display change gives the inline element a box that can be transformed. The penguin parts in this tutorial already use positioned elements, so they can receive transforms directly.
How do you assemble a complete single-file example?
Once the structure and rules make sense, combine them in one document. This version includes the scene, all drawing rules, both animations, and the reduced-motion override. Save it as penguin.html and open it locally.
Also popular on Amazon
- Portable and powerful USB-C HUB: BENFEI USB Type-C HUB, with super-soft and knot-free silicone woven design cable, meets most mobile office needs. Compact, lightweight, stylish, and powerful portable USB C Hub equipped with 1 x HDMI port, 1 x 100W charging, and 3 x USB ports. 18-month warranty, 24-hour response, to ensure you feel at ease when using our product.
- Design centered on comfort and reliability: Thanks to BENFEI's end-to-end in-house cable production capability, in-house PCBA and assembly capability, using the industry's most advanced silicone woven design and process, 20cm cable in length, no knots, super-soft, the HUB is easy to use in all scenarios: laptop, tablet, stand etc. Super-soft, 25000+ life cycles, to meet your daily carrying and office needs.
- 100W Charging: Support up to 90W USB C pass-through charging via Type-C port to keep your laptop powered. 10W is reserved for other interface operations. No data and video function on the Type-C port.
- 4K HDMI Display: The HDMI port supports media display at resolutions up to 4K 30Hz, keeping every incredible moment detailed and ultra vivid. Please note that the C port of the Host device needs to support video output.
- Transfer Files in Seconds: Transfer files and from your laptop at speeds up to 10 Gbps with USB A 3.2 port. Extra 2 USB A 2.0 ports are perfectly for your keyboards and mouse.
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>Animated CSS Penguin</title>
<style>
* { box-sizing: border-box; }
:root {
--ink: #1f2937;
--belly: #f8fafc;
--beak: #f59e0b;
--foot: #f97316;
--scene: #dbeafe;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: var(--scene);
}
.scene {
min-height: 100vh;
display: grid;
place-items: center;
padding: 2rem 1rem;
overflow: hidden;
}
.penguin {
position: relative;
width: clamp(10rem, 55vw, 18rem);
aspect-ratio: 4 / 5;
animation: penguin-bob 1.8s ease-in-out infinite;
}
.penguin__body {
position: absolute;
inset: 0;
background: var(--ink);
border-radius: 48% 48% 44% 44% / 42% 42% 56% 56%;
}
.penguin__belly {
position: absolute;
inset: 20% 12% 15%;
background: var(--belly);
border-radius: 48% 48% 45% 45% / 42% 42% 58% 58%;
}
.penguin__face {
position: absolute;
top: 12%; left: 20%; width: 60%; height: 28%;
background: var(--belly); border-radius: 50%;
}
.penguin__eye {
position: absolute; top: 28%; width: 12%; aspect-ratio: 1;
background: #111827; border-radius: 50%;
}
.penguin__eye--left { left: 27%; }
.penguin__eye--right { right: 27%; }
.penguin__beak {
position: absolute; left: 42%; top: 58%; width: 16%; height: 18%;
background: var(--beak); clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.penguin__wing {
position: absolute; top: 36%; width: 25%; height: 39%;
background: var(--ink); border-radius: 70% 30% 65% 35% / 35% 35% 65% 65%;
}
.penguin__wing--left {
left: -8%; transform-origin: 85% 15%;
animation: wing-left 1.8s ease-in-out infinite alternate;
}
.penguin__wing--right {
right: -8%; transform-origin: 15% 15%;
animation: wing-right 1.8s ease-in-out infinite alternate;
}
.penguin__foot {
position: absolute; bottom: -3%; width: 31%; height: 12%;
background: var(--foot); border-radius: 70% 70% 45% 45%;
}
.penguin__foot--left { left: 14%; transform: rotate(8deg); }
.penguin__foot--right { right: 14%; transform: rotate(-8deg); }
@keyframes penguin-bob {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-0.35rem); }
}
@keyframes wing-left {
from { transform: rotate(18deg); }
to { transform: rotate(-8deg); }
}
@keyframes wing-right {
from { transform: rotate(-18deg); }
to { transform: rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
.penguin, .penguin__wing--left, .penguin__wing--right {
animation: none;
}
}
</style>
</head>
<body>
<main class='scene'>
<div class='penguin' role='img' aria-label='A cartoon penguin'>
<div class='penguin__body'>
<div class='penguin__belly'></div>
<div class='penguin__face'>
<span class='penguin__eye penguin__eye--left'></span>
<span class='penguin__eye penguin__eye--right'></span>
<span class='penguin__beak'></span>
</div>
<span class='penguin__wing penguin__wing--left'></span>
<span class='penguin__wing penguin__wing--right'></span>
<span class='penguin__foot penguin__foot--left'></span>
<span class='penguin__foot penguin__foot--right'></span>
</div>
</div>
</main>
</body>
</html>
The document intentionally keeps the CSS in the head so you can see the dependency order: layout first, shapes next, animation after that, and the media query last. In a larger project, move the rules into a separate stylesheet without changing the class names.
How do you check the responsive layout and debug mistakes?
Inspect the static composition before diagnosing motion. Temporarily add animation: none in your developer tools or comment out the animation declarations. Once the still image is correct, re-enable one animation at a time.
- Check the parent box. Confirm that
.penguinhas a non-zero width, an aspect ratio, andposition: relative. Without that positioning context, absolute children may anchor to an unexpected ancestor. - Check class names. A typo in
penguin__wing--rightor a keyframe name silently leaves that part unstyled or still. - Check stacking and clipping. If a wing disappears, inspect
overflow, the wing’s position, and whether another element paints over it. Keep clipping on the scene rather than the body if the wings should extend beyond the silhouette. - Check transforms. A keyframe transform replaces a static transform on that element. Put the needed rotation and translation together in the keyframe declaration.
- Check narrow widths. Resize to a phone-sized viewport and then to a wide desktop viewport. Look for a beak that leaves the face, feet that overlap the scene edge, or a body that becomes too small to read.
- Check motion preferences. Switch the operating system’s reduced-motion setting and confirm that the character remains visible in a stable pose.
These checks are especially useful because a CSS illustration can look correct at one width while exposing a percentage or overflow mistake at another. Fix the geometry first; tuning animation timing cannot repair a detached feature.
Which motion style should you choose?
Choose motion by purpose rather than by how many effects you can add. A bob is the least distracting option and works when the penguin is decorative. A wing flap draws attention to the character but should use a smaller angle and longer duration if the penguin sits beside readable content.
Continuous repetition suits an ambient illustration. A finite iteration count is better when the movement introduces a character and should then stop. For a reversible loop, alternate avoids a visible jump. For a one-way sequence, match the first and last keyframe states so the restart is seamless.
Do not combine several large translations, rotations, and flashes simply to make the demo look busy. Layer one change at a time, provide the reduced-motion alternative, and preserve a clear static silhouette underneath every effect.
What can you customize safely?
Change the custom-property colors to create different species or themes without touching the geometry. Adjust the parent’s clamp() values to make the illustration occupy more or less of the page. To add a scarf, create another child inside .penguin__body, position it with percentages, and give it a high enough stacking order to sit above the belly.
Also popular on Amazon
- 【Read before You Buy】 Note: This adapter is USB 2.0 version and cannot transmit HDM, VGA, or other video signals. Nevertheless, they are fully capable of charging devices,duplicating files, and can be seamlessly integrated with USB-C earphones, wireless network adapters, and SD card adapters.
- 【Easy to Use and Safe】Thanks to modern manufacturing techniques, we've made these adapters sufficiently compact so that they can remain inserted in your device without noticeable protrusion or inconvenience. This means you don't have to constantly plug and unplug them, reducing the likelihood of wear and misalignment, and making them more convenient to carry around.
- 【Reliable Quality】Engineered for enhanced durability, durable aluminum alloy shell material,get excellent wear resistance and heat dissipation,the male USB C and female USB connectors & the male USB and female USB C connectors are designed to be plugged and unplugged up to 20000 times. Provides data transfer, device charging, memory space expansion, and additional computer peripherals.
- 【Think more for you】Do you need to connect a USB-C-enabled device to an odd device that only has USB-A ports? Then these USB-A male to USB-C female adapters are made for you.Simply insert the adapter into the USB-A port on the device, and you can instantly connect your USB-C device to the device that originally didn't have the correct connection port.
- 【Trusted xiwxi Quality and Service】As a responsible brand seller, you will receive xiwxi's 12-month Quality assurance and lifetime friendly customer service, you're not just buying a product,you're investing in peace of mind with all-round quality and exceptional customer service.
For a shadow, add a sibling behind the penguin or a pseudo-element on the scene. Animate its opacity or scale only if the effect remains subtle; a static shadow is often sufficient. If you add text inside the character, keep it readable at the smallest width and decide whether it belongs in the accessible name or should be hidden as decoration.
When you need a different wing rhythm, assign a custom duration to an individual wing, such as animation-duration: 2.2s. Keep the reduced-motion rule broad enough to disable every continuous animation you introduce, not just the original three selectors.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallWhat is the final checklist before publishing?
- The HTML has one clear scene and one parent character element.
- The accessible name matches the illustration’s role, or the decorative version is marked hidden.
- The body, belly, face, beak, wings, and feet scale from the parent rather than fixed viewport coordinates.
- The bob and wing motions are defined with named keyframes and a deliberate duration, easing, repetition, and direction.
- Movement uses transforms where a visual translation or rotation is intended.
- The reduced-motion media query disables continuous animation while leaving the penguin visible.
- The scene remains centered and unclipped at both narrow and wide widths.
- Animation is debugged after the static drawing is correct, with one effect enabled at a time.
With those pieces in place, the penguin is a maintainable CSS illustration rather than a pile of unrelated coordinates. You can add personality through small, purposeful changes while preserving responsive sizing and an accessible fallback.
Frequently Asked Questions
Can I make the penguin decorative without giving it an accessible name?
Yes. If nearby text already communicates everything the drawing conveys, mark the wrapper with aria-hidden='true' and remove the image role and label. If the illustration carries meaning on its own, keep a concise label that describes the character without narrating every CSS part.
How can I make two penguins move at different speeds?
Give each character a modifier class and override a custom duration or delay on that class. Keep the same keyframe names so the reduced-motion rule can disable both characters consistently.
How do I stop the animation when the page is printed?
Add a print media rule such as @media print { .penguin, .penguin__wing { animation: none; } }. A static pose avoids wasting print rendering work and ensures the captured illustration is deterministic.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Can I add interaction without JavaScript?
For simple states, CSS pseudo-classes such as :hover and :focus-visible can change a color or apply a short transform. Keep keyboard focus styles visible, avoid making essential information depend on hover, and honor the same reduced-motion preference for any added transition.

