Last active
November 13, 2016 04:03
-
-
Save think2011/c9cf838b08d455a5fc41c5999cea8ac4 to your computer and use it in GitHub Desktop.
css实现的tabs
This file contains hidden or 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
[class^=scene-] { | |
transform: translate3d(0, 0, 0); | |
transition: .3s ease; | |
display: flex; | |
flex-flow: row nowrap; | |
@for $i from 0 through 5 { | |
&.scene-#{$i} { | |
transform: translate3d(#{-($i * 100%)}, 0, 0); | |
} | |
} | |
> * { | |
width: 100%; | |
flex: none; | |
transition: .3s; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment