Genres use flip effect now
This commit is contained in:
parent
37a9b2d020
commit
fbcef9008d
@ -3,7 +3,8 @@ component Genres
|
|||||||
|
|
||||||
.grid
|
.grid
|
||||||
each genre in arn.Genres
|
each genre in arn.Genres
|
||||||
a.grid-cell.ajax(href="/genres/" + arn.FixGenre(genre))
|
a.grid-cell.backside-card.ajax(href="/genres/" + arn.FixGenre(genre))
|
||||||
.grid-text
|
.grid-text.front
|
||||||
GridIcon(arn.GetGenreIcon(genre))
|
GridIcon(arn.GetGenreIcon(genre))
|
||||||
span= genre
|
span= genre
|
||||||
|
img.grid-image.back(src="https://cdn.anilist.co/img/dir/anime/reg/21519-4I676N0vzuek.jpg", alt="")
|
@ -7,6 +7,8 @@
|
|||||||
.grid-cell
|
.grid-cell
|
||||||
uiElement()
|
uiElement()
|
||||||
|
|
||||||
|
position relative
|
||||||
|
|
||||||
flex-grow 0
|
flex-grow 0
|
||||||
flex-shrink 0
|
flex-shrink 0
|
||||||
|
|
||||||
@ -22,11 +24,38 @@
|
|||||||
|
|
||||||
margin 0.5rem
|
margin 0.5rem
|
||||||
|
|
||||||
|
.scale-out
|
||||||
&:hover
|
&:hover
|
||||||
transform scale(1.03)
|
transform scale(1.02)
|
||||||
|
|
||||||
|
.backside-card
|
||||||
|
transition all transitionSpeed ease-in-out
|
||||||
|
|
||||||
|
&:hover
|
||||||
|
transform rotateY(180deg)
|
||||||
|
|
||||||
|
.front
|
||||||
|
opacity 0
|
||||||
|
.back
|
||||||
|
opacity 1
|
||||||
// .grid-icon
|
// .grid-icon
|
||||||
// transform scale(1.3)
|
// transform scale(1.3)
|
||||||
|
|
||||||
|
.front
|
||||||
|
position absolute
|
||||||
|
left 0
|
||||||
|
top 0
|
||||||
|
opacity 1
|
||||||
|
transition opacity transitionSpeed ease
|
||||||
|
|
||||||
|
.back
|
||||||
|
position absolute
|
||||||
|
left 0
|
||||||
|
top 0
|
||||||
|
opacity 0
|
||||||
|
transition opacity transitionSpeed ease
|
||||||
|
transform rotateY(180deg)
|
||||||
|
|
||||||
.grid-anime
|
.grid-anime
|
||||||
border none
|
border none
|
||||||
&:hover
|
&:hover
|
||||||
@ -52,4 +81,5 @@
|
|||||||
width 100%
|
width 100%
|
||||||
height 100%
|
height 100%
|
||||||
margin 0
|
margin 0
|
||||||
|
border-radius 3px
|
||||||
object-fit cover
|
object-fit cover
|
Loading…
Reference in New Issue
Block a user