Skip to content

Support custom children as layer content for ParallaxBanner #22

Closed
@jscottsmith

Description

@jscottsmith

Should be possible to allow custom children for each layer of the <ParallaxBanner>. This would allow video or other html to parallax inside a banner. See #21

const Video = ({ src }) => (
    <video src={src}></video>
);

...

<ParallaxBanner
    layer={[{
        amount: 0.2,
        children: <Video src="foo.mp4">,
    }]}
/>

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions