/** * A collection of popular layouts and patterns made with CSS (https://csslayout.io) * (c) 2019 - 2021 Nguyen Huu Phuoc */ import * as React from 'react'; import { Helmet } from 'react-helmet'; import Pattern from '../../constants/Pattern'; import DetailsLayout from '../../layouts/DetailsLayout'; import Block from '../../placeholders/Block'; import BrowserFrame from '../../placeholders/BrowserFrame'; const Details: React.FC<{}> = () => { return (
Fading a long section to indicate there is more content.
...
`} css={` .container { /* Used to position the faded element */ position: relative; } .container__content { /* Height */ height: 200px; /* Scrollable */ overflow-y: scroll; } .container__fading { /* Displayed at the bottom */ bottom: 0; left: 0; position: absolute; /* Size */ height: 30px; width: 100%; /* Gradient background */ background: linear-gradient(rgba(255, 255, 255, 0.01), #fff); } `} >
); }; export default Details;