
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
react-parallax
Advanced tools
A react component for simple parallax effect
npm install react-parallax --save-dev
var Parallax = require('react-parallax');
var TheContainer = React.createClass({
render: function () {
return (
<div>
<Parallax bgImage="assets/1.jpg" strength={300}>
<h1>first parallax section</h1>
<h2>with some crazy text</h2>
<br/>
<h2>it's just there to fill the website</h2>
<br/>
</Parallax>
<Parallax bgColor="white">
<br/>
<h1>second parallax is without bg image</h1>
<br/>
</Parallax>
<Parallax bgImage="assets/2.jpg">
<br/>
<h1>its the third</h1>
<br/>
<h2>hello hello</h2>
<br/>
</Parallax>
</div>
)
}
});
The children are used to display any content inside the react-parallax component
Initial set up, run:
npm install
For watch on files, live reload, JSX transpiling and browserify, run:
grunt
Port on Windows is 80, 8080 on all other OS by default. Can be set with option -port=8080
MIT
FAQs
A React Component for parallax effect working in client-side and server-side rendering environment
The npm package react-parallax receives a total of 11,869 weekly downloads. As such, react-parallax popularity was classified as popular.
We found that react-parallax demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.