
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
rfx-scroll-animation
Advanced tools
RfxScrollAnimation - animate your page elements on scroll
Animate your page elements on scroll
Install the npm package:
npm install rfx-scroll-animation
import { RfxScrollAnimationModule } from 'rfx-scroll-animation';
@NgModule({
imports: [
RfxScrollAnimationModule
]
})
In your app.component.ts initialize animation listeners inside ngOnInit
import { RfxScrollAnimationService } from 'rfx-scroll-animation';
constructor(private rfxScrollAnimationService: RfxScrollAnimationService) { }
public ngOnInit(): void {
this.rfxScrollAnimationService.initListeners();
}
just apply libRfxScrollAnimation
to your container and pass animation type
<div libRfxScrollAnimation animationType="bottom">
[...]
</div>
distanceFromPageBottomPercentage: number
(default value: 20)
when element should appear - in percentage from the bottom of the page (e.g. 30 = 30% from the bottom of current viewport)
animationType: AnimationTypeEnum
(default value: 'none')
Available animation types:
none
use this if you want to implement a custom animationtop
- fade in from topbottom
- fade in from bottomright
- fade in from rightleft
- fade in from leftzoom
- zoom in / outanimationDistancePx: number
(default value: 25)
from how far the animation should fade in - shift value
transitionDurationMs: number
(default value: 500)
animation duration in milliseconds
transitionTimingFunction: string
(default value: 'cubic-bezier(0.4, 0.0, 0.2, 1)')
transition timing function (for more info see https://www.w3schools.com/cssref/css3_pr_transition-timing-function.asp)
scaleRatio: number
(default value: 1.5)
ONLY FOR 'zoom' ANIMATION TYPE!
scale value (eg. scale from value
to 1)
elementVisibleChange: EventEmitter<boolean>
listen to show / hide element events and create your own custom animation
<div libRfxScrollAnimation animationType="bottom" (elementVisibleChange)="myCustomFunction($event)">
[...]
</div>
transitionDelayMs: number
isOnlyFirstTime: boolean
TODO
This project is licensed under the MIT License
FAQs
Animate your page elements on scroll
The npm package rfx-scroll-animation receives a total of 0 weekly downloads. As such, rfx-scroll-animation popularity was classified as not popular.
We found that rfx-scroll-animation 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.