
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
momentum-css
Advanced tools
Add page events like tracking scroll position, mouse position, device orientation, and more to your CSS!
Add the js inside your <head>
tag.
All values are unitless meaning you will need to add your units to them. For example, calc(var(--scrolly)*1px)
results in a pixel value for the vertical scroll position.
Property | Description |
---|---|
| 0 before the page is loaded, 1 when the page is done loading.
|
| The width of the viewport. |
| The height of the viewport. |
| Distance scrolled on the X axis. |
| Distance scrolled on the Y axis. |
| Pointer coordinates on the X axis. This includes touch events. |
| Pointer coordinates on the Y axis. This includes touch events. |
| Boolean value if the pointer is up or down. Use touchpoints below for touch events. |
| Number of touch points currently active. |
| Gyroscopic orientation along the alpha axis. Only avalible in some mobile browsers. |
| Gyroscopic orientation along the beta axis. Only avalible in some mobile browsers. |
| Gyroscopic orientation along the gamma axis. Only avalible in some mobile browsers. |
| Compass heading. Only avalible in some mobile browsers. |
| A random value between 0 and 1 .
|
| A random value between 0 and 1 updated every 100ms unless otherwise specified with --noise-interval on the <body> tag.
|
To trigger element variables, add the class momentumcss
to your elemnt.
Property | Description |
---|---|
| Width of the element |
| Height of the element |
| Element offsetTop value |
| Element offsetLeft value |
| A random value between 0 and 1 . This overrides the global value in the CSS cascade.
|
FAQs
Use JS events within your CSS
The npm package momentum-css receives a total of 1 weekly downloads. As such, momentum-css popularity was classified as not popular.
We found that momentum-css 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
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.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.