mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-23 09:45:46 +03:00
Experiment with this hide-controls UI on carousel
This commit is contained in:
parent
46d5e20008
commit
b06fc385ad
1 changed files with 11 additions and 0 deletions
11
src/app.css
11
src/app.css
|
@ -360,6 +360,17 @@ button.carousel-dot.active {
|
|||
button.carousel-dot.active {
|
||||
pointer-events: none;
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.carousel-controls {
|
||||
transform: translateY(100%);
|
||||
transition: transform 0.2s ease-in-out;
|
||||
}
|
||||
.carousel:hover + .carousel-controls,
|
||||
.carousel-controls:hover,
|
||||
.carousel-controls:focus-within {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* COMPOSE BUTTON */
|
||||
|
||||
|
|
Loading…
Reference in a new issue