-
-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kevin Zuniga Cuellar
committed
Dec 24, 2024
1 parent
29cdb81
commit b21e43a
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
details { | ||
interpolate-size: allow-keywords; | ||
} | ||
|
||
details::details-content { | ||
block-size: 0; | ||
opacity: 0; | ||
transform: translateY(-5px); | ||
} | ||
|
||
details[open]::details-content { | ||
block-size: auto; | ||
opacity: 1; | ||
transform: translateY(0px); | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
details::details-content { | ||
transition: | ||
block-size 200ms ease-in-out, | ||
content-visibility 200ms allow-discrete ease-in-out, | ||
opacity 200ms ease-in-out, | ||
transform 200ms ease-in-out; | ||
} | ||
} |