
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
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={400}>
<br/>
<h1>
A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame. It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole of her lower arm towards the viewer. Gregor then turned to look out the window at the dull weather. Drops
</h1>
</Parallax>
</div>
)
}
});
For more flexibility and styling purposes you can now add a <Background></Background>
section to your Parallax Container. Child nodes inside this Background will be positioned like the bgImage behind the other children. Different from the bgImage there is no automatic scaling.
var {Parallax, Background} = require('react-parallax');
var TheContainer = React.createClass({
render: function () {
return (
<div>
<Parallax strength={300}>
<Background>
<img src="http://www.fillmurray.com/400/300" alt="fill murray"/>
<div style={{width: 800, height: 300, backgroundColor: '#450093'}}></div>
<img src="http://www.fillmurray.com/500/300" alt="fill murray"/>
</Background>
<h1>A collection of textile samples lay spread out on the table ...</h1>
</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 14,006 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
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.