Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
anim8js-dom
Advanced tools
anim8 your HTML elements
anim8js-dom modifies the animation definition and animator functions to include units. Any unit that the property supports in CSS is usable in anim8js - and can handle converting between different units. You can even animate between values with different units. The following functions have changed:
Animator.set( attrs )
can set values with units like 12px
or 10%
Animator.get( attrs )
you can specify what unit you want an attribute to be returned inAnimator.ref( attr, desiredUnit, relativeTo )
reference to an attributes value with the given unitAnimator.value( attr )
returns the value of the attribute with its unitAnimator.tweenTo( attr, target, options, cache, unit )
you can specify the target value unitAnimator.tweenManyTo( targets, options, cache, units )
you can specify a map of units to match the map of target valuesAnimator.tweenFrom( attr, starting, options, cache, unit )
you can specify the starting value unitAnimator.tweenManyFrom( startings, options, cache, units )
you can specify a map of units to match the map of startingsAnimator.tween( attr, starts, ends, options, cache, unit )
you can specity the unit for tweeningAnimator.tweenMany( starts, ends, options, cache, units )
you can specify a map of units to match the map of startsAnimator.move( attr, amount, options, cache, unit )
move by the given unitAnimator.moveMany( amounts, options, cache, units )
move many by the given map of unitsAnimator.follow( attr, path, options, cache, unit )
follow a path where the values in the path are the given unitThe animation definition has been modified to now include a units
map like so:
anim8.save('animationName`, {
keyframe: {
'0,20,60,100': {
left: 50
},
'10,40,80`: {
left: 0
}
},
units: {
left: '%
}
});
Notes
relativeTo
is one of: parentWidth, parentHeight, width, height, fontSize, parentFontSize, or htmlFontSize and is used with using the %
unitbower install anim8js-dom
npm install anim8js-dom
If a (type) isn't beside the property - assume a simple number type.
padding
paddingTop
paddingLeft
paddingBottom
paddingRight
margin
marginTop
marginLeft
marginBottom
marginRight
borderRadius
borderTopLeftRadius
borderTopRightRadius
borderBottomLeftRadius
borderBottomRightRadius
borderWidth
borderTopWidth
borderRightWidth
borderBottomWidth
borderLeftWidth
outlineWidth
outlineOffset
tabSize
textIndent
borderSpacing
fontSize
lineHeight
letterSpacing
wordSpacing
origin
(2d) originX
originY
opacity
zIndex
width
minWidth
maxWidth
height
minHeight
maxHeight
top
right
bottom
left
blur
sepia
brightness
grayscale
contrast
invert
saturation
heuRotate
rotate
rotate3d
(quaternion)
translate
(2d) translateX
translateY
translateZ
translate3d
(3d)
scale
(2d) scaleX
scaleY
scaleZ
scale3d
(3d)
skew
(2d) skewX
skewY
backface
visibility
backgroundColor
(rgba) color
(rgba) borderTopColor
(rgba) borderRightColor
(rgba) borderBottomColor
(rgba) borderLeftColor
(rgba) borderColor
(rgba) outlineColor
(rgba) textDecorationColor
(rgba)
textShadowX
textShadowY
textShadowPosition
(2d) textShadowBlur
textShadowColor
(rgba)
shadowX
shadowY
shadowPosition
(2d) shadowBlur
shadowSpread
shadowColor
(rgba) shadowInset
scrollLeft
scrollTop
center
(2d) centerX
centerY
angle
distance
orbitOffset
(2d)
FAQs
anim8 your HTML elements
We found that anim8js-dom 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.