Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
transform
model with the simpler CSS model.npm install stylefire --save
Stylefire will automatically detect and set vendor prefixes for newer CSS properties.
It also allows you to:
transform
as seperate properties,x
, y
, and z
shorthands for translate
, andtranslate
, scale
and rotate
.import css from 'stylefire/css';
const div = document.querySelector('div');
const divStyler = css(div);
divStyler.set({
scale: 0.5,
x: 100,
y: 100,
rotate: 45,
background: '#f00'
});
transform
is still supported for more complex transformations.
Stylefire simplifies SVG line drawing. It works out the total path length and allows you to set pathLength
, pathSpacing
and pathOffset
properties as percentages:
import { tween } from 'popmotion';
import svg from 'stylefire/svg';
const path = document.querySelector('path');
const pathStyler = svg(path);
tween({ to: 100 })
.start((v) => pathStyler.set('pathLength', v));
stroke-dasharray
and stroke-dashoffset
are still supported if you wish to work with these attributes directly.
By default, firing set
will schedule a render on the next available frame. This way, we batch renders and help prevent layout thrashing.
This behaviour can be manually overridden with the render
method.
import css from 'stylefire/css';
const div = document.querySelector('div');
const divStyler = css(div);
divStyler
.set({ width: 500 })
.render();
console.log(div.offsetWidth); // 500
divStyler.set({ width: 100 });
console.log(div.offsetWidth); // 500
divStyler.render();
console.log(div.offsetWidth); // 100
FAQs
Performant, simplified stylers for CSS, SVG, path and DOM scroll.
The npm package stylefire receives a total of 40,445 weekly downloads. As such, stylefire popularity was classified as popular.
We found that stylefire 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.