Socket
Socket
Sign inDemoInstall

depth-section

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depth-section

Easy to use 3D models for your page with a parallax scrolling effect.


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

Depth Section (working title)

Easy to use 3D models for your page with a parallax scrolling effect.

Stay tuned! New background models and features are on the way!

Install

In your React project, run:

npm install depth-section three

Or

yarn add depth-section three

Usage

import { Fragmented } from 'depth-section'

const App = () => (
    <div>
      <div style={{height: '100vh'}} />
      <div style={{height: '100vh'}}>
        <Fragmented />
      </div>
      <div style={{height: '100vh'}} />
    </div>
  )
}

export default App

Roadmap

  • Add more 3D backgrounds
  • Improve performance by not updating when the background isn't visible or isn't moving
  • Make existing 3D backgrounds more customizable with props
  • Improve Storybook integration
  • Investigate issues caused by viewport height changes on mobile devices. Resources:
    • CSS Tricks: CSS fix for 100vh in mobile WebKit
    • CSS Tricks: The trick to viewport units on mobile
    • Stack Overflow: CSS3 100vh not constant in mobile browser

FAQs

Package last updated on 04 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc