Scrollable
Dynamic Shadows
Now introducing shadows for better UX! Should the scroll fall in such a way that might imply the content has ended before it actually has, the shadows will communicate to the user that there's more content. New max-height classes are based on typographic rhythm value, with values between 5 - 20 (anything smaller than 5 seemed unnecessarily short). Append this number to class .scrollable__container-#.
See /scripts/custom.js for required scripts.
Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar. The Big Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious Semikoli, but the Little Blind Text didn’t listen. She packed her seven versalia, put her initial into the belt and made herself on the way.
<div class="scrollable">
<div class="scrollable__shadow scrollable__shadow-top"></div>
<div class="scrollable__container-#">
<div class="scrollable__content"><!-- content --></div>
</div>
<div class="scrollable__shadow scrollable__shadow-bottom"></div>
</div>
Basic
The "scrollable" feature sets the max-height and overflow: auto to the element it's applied to. To use, apply .scrollable-### to the element, where ### is any number between 100 and 400 in increments of 50. This method is preserved from Nitro 1.0.
Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar. The Big Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious Semikoli, but the Little Blind Text didn't listen. She packed her seven versalia, put her initial into the belt and made herself on the way.
<div class="scrollable-150">
<!-- content -->
</div>