반응형
Responsive CSS3 slider without Javascript
CSS3 Responsive Slider is, as the name implies, a responsive CSS3 slider without Javascript. The actual slider is much like any JavaScript slider. It floats all of the content areas (articles) next to each other. And then hides the overflow. We then animate the margin of the inner div, so if we have 5 articles, moving the left-margin -100% would give us the second article. To save our input we are using radio buttons. As mentioned above you could also use :target and anchor links, but it doesn’t mimic Javascript in the same way as you would only be able to handle one action at a time, you would end up with a bunch of items in your history (clicking back would turn the slider back one), and it’s been done before.
반응형
'프로그래밍 > Style & Design' 카테고리의 다른 글
[UI] Morphy-Toolbar: An expanding/collapsing toolbar (0) | 2016.03.09 |
---|---|
모바일 - 반응형 웹 (0) | 2016.02.19 |
[UI] Gridlex: Flexbox grid system (0) | 2015.11.30 |
[CSS] CSSketch: Add CSS support to Sketch 3 (0) | 2015.11.25 |
[CSS] Sass, Compass (0) | 2015.11.09 |