
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
touchflip-react
Advanced tools
A Reusable Flipping Component For ReactJS
npm install --save touchflip-react
import React, { Component } from 'react'
import TouchFlip from 'touchflip-react'
class Example extends Component { render () { return (
<TouchFlip // Usage Example
isFlippable={true}
// ^ set false to stop flipping
showBackSide={false}
// ^ false: front shown. true: back shown
// use showBackSide to manually trigger flipping
duration={500}
// ^ duration of flipping animation in milli-seconds
perspective={700}
// ^ 3d perspective in pixels
timingFunction={'linear'}
// ^ 'ease-in' 'ease-in-out' etc.
flipOrientation={'horizontal'}
// ^ can be either 'horizontal' or 'vertical'
defaultFlipDirection={true}
// ^ if true, rotates left to right horizontally
// and down to up vertically
// ^ if false, rotates right to left horizontally
// and up to down vertically
onBackSideShown={() => {}}
// ^ callback after flipping to back side
onFrontSideShown={() => {}}
// ^ callback after flipping to front side
style={{ // you can use custom styles here
// width, height etc.
// do not override the position attribute
}}
className="touchflip-main-ctr"
// ^ or you can use classes instead
front={ // markup/jsx for the front side
<div
style={{background: 'royalblue', width: '100%', height: '100%'}}
className="your-class">
<h1>Front Side</h1>
</div>
}
back={ // markup/jsx for the back side
<div
style={{background: 'springgreen', width: '100%', height: '100%'}}
className="your-class">
<input data-noflip type="text" /> <br />
<input data-noflip type="range" /> <br />
{/* ^ use data-noflip on each element
you want to prevent flipping when
swiping or tapping that element */}
<input type="button" value="Button"/> <br />
{/* ^ see this one does not have data-noflip, hence
the flipping occurs when you swipe or tap it */}
</div>
}
/>
); } }
see
example/src/App.jsto check the code for demo app.
create-react-library (https://www.npmjs.com/package/create-react-library)./ and the other in example/ dir.MIT © ahmednooor
FAQs
A Reusable Flipping Component For ReactJS
We found that touchflip-react demonstrated a not healthy version release cadence and project activity because the last version was released 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.