Tab One Content
http://youmightnotneedjs.com/ You might not need JavaScript JavaScript is great, and by all means use it, while also being aware that you can build so many functional UI components without the additional dependancy. Maybe you can include a few lines of utility code, or a mixin, and forgo the requirement. If you're only targeting more modern browsers, you might not need anything more than what the browser ships with. This site is fully copied from youmightnotneedjquery.com, an excellent resource for vanilla JavaScript created by @adamfschwartz and @zackbloom. But this time, we take a look at the power of modern native HTML and CSS as well as some of the syntactic sugar of Sass. Because, you might not need scripts for that task at all! (Note: Some of these demos may not be accessible and work on all browsers. Please take a moment to review the usage notes and to test them in your project before using in production) [ ] Your search didn't match any comparisons. Components Image Slider resources: * CSS Slider Builder * 12 CSS Slider Examples * CSS Gallery DEMO CODEPEN See the Pen CSS-Only Slider: youmightnotneedjs.com by Una Kravets ( @una) on CodePen. Usage: Presentational, Option to read or be skipped by screen reader, no user control over images. HTML
Content for the first accordion
Content for the second accordion
Content for the third accordion
SCSS
$thumbnail-size: 40px;
$background-color: black;
.thumbnail {
max-width: $thumbnail-size;
}
.lightbox {
// Hide lightbox image
display: none;
// Position/style of lightbox
position: fixed;
z-index: 999;
width: 100%;
height: 100%;
text-align: center;
top: 0;
left: 0;
background: $background-color;
}
.lightbox img {
/// Pad the lightbox image
max-width: 90%;
max-height: 80%;
margin-top: 2%;
}
.lightbox:target {
// Remove default outline and unhide lightbox
outline: none;
display: block;
}
Tabs
resources:
* Functional CSS Tabs Revisited
* Material Design CSS Tabs
DEMO
CODEPEN
See the Pen KgRzRE by Una Kravets (@una) on CodePen.
Usage: Not keyboard navigable.
HTML
Tab One Content
Tab Two Content
Tab Three Content