Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@developerx167/infinite-right-carousel
Advanced tools
Readme
Example:
import React from "react";
import { useRef } from "react";
import Carousel from "./lib/Carousel.js";
function App() {
const cRef = useRef()
const prev = useRef()
const next = useRef()
return (
<section>
// previous button
<button ref={prev} onClick={()=>cRef.current.prev()} style={{borderRadius : "50%"}}>prev</button>
// carousel
<Carousel
prev={prev}
next={next}
ref={cRef}
ms={3000}
width={4}
sideBlurColor="white">
// items
<div className={"container"} style={{ height : "30vw", width : "30vw", margin : `0 max(.5rem,.5vw)`,}}>1</div>
<div className={"container"} style={{ height : "30vw", width : "30vw", margin : `0 max(.5rem,.5vw)`,}}>2</div>
<div className={"container"} style={{ height : "30vw", width : "30vw", margin : `0 max(.5rem,.5vw)`,}}>3</div>
<div className={"container"} style={{ height : "30vw", width : "30vw", margin : `0 max(.5rem,.5vw)`,}}>4</div>
</Carousel>
// next button
<button ref={next} onClick={()=>cRef.current.next()} style={{borderRadius : "50%"}}>next</button>
// change width and sideBlurColor color on click
<button onClick={()=>{
cRef.current.width(1)
cRef.current.sideBlurColor("")
}}>change width</button>
</section>
);
}
export default App;
FAQs
infinite right carousel blur effect responsive
We found that @developerx167/infinite-right-carousel 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.