import { ParallaxProvider } from 'react-scroll-parallax' import { storyParallaxItem, storySectionParallax } from '../storybook/core/section' import SettingsPageProvider from '../components/provider/SettingsPageProvider' import { simpleSettings } from '../storybook/toolbar' import { LmPage } from '../components/page/Page' import { BackgroundStoryblok, ColumnStoryblok, FlexRowStoryblok, HeadlineStoryblok, PageStoryblok, ParallaxItemStoryblok, RowStoryblok } from '../typings/generated/components-schema' import LmSectionParallax from '../components/section/SectionParallax' import { storyImageUrls } from '../storybook/contentHelper' // eslint-disable-next-line import/no-anonymous-default-export export default { title: 'Design/Layout/Section Parallax' } const getObj = () => { const pageObj: PageStoryblok = { _uid: 'page', component: 'page', body: [ { ...storySectionParallax(), ratio: '4/3', elements: [ storyParallaxItem({ options: { speed: -20, image: 'https://a.storyblok.com/f/57008/5000x3334/bae4d23fcf/amsterdam-retouch.png' } }), { speed: -10, scale: '1,1.5', opacity: '0.5, 1', // always_complete_animation: true, // translateX: '-100, 100, easeOutCubic', children: [ { _uid: '2dfsf', component: 'flex_row', justify: 'center', align_content: 'center', column: true, full_height: true, body: [ { component: 'headline', _uid: '123123', custom_color: { rgba: '#fff' }, text: 'Some Headline' } as HeadlineStoryblok ] } as FlexRowStoryblok ] } as ParallaxItemStoryblok ] } ] } return pageObj } export const Basic = () => (