
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Custom HTML element to animate nested images.
Early alpha. Preloading not implemented yet so it will stutter through first playthrough.
Not a lot of demo stuff yet, but there is my basic test suite.
To use, embed JS file in dist
and add the <frame-seq>
element to your HTML. Any elements nested inside will be played back in order of the HTML.
<frame-seq>
<img src="imgseq01.jpg" ... >
<img src="imgseq02.jpg" ... >
<img src="imgseq03.jpg" ... >
<img src="imgseq04.jpg" ... >
<img src="imgseq05.jpg" ... >
<img src="imgseq06.jpg" ... >
<img src="imgseq07.jpg" ... >
<img src="imgseq08.jpg" ... >
<img src="imgseq09.jpg" ... >
<img src="imgseq10.jpg" ... >
</frame-seq>
fps
- Playback speed (frames-per-second). Default 12.autoplay
- Boolean: Begin playback as soon as element is rendered.reverse
- Boolean: Playback is in opposite direction.pingpong
- Boolean: Doesn't do anything yet.loop
- Boolean: Playback automatically loops (regardless of direction).width
- Doesn't do anything yet.height
- Doesn't do anything yet.preload
- Boolean: Doesn't do anything yet.All attributes are also expressed as properties. Additional properties are:
currentFrame
- The current playhead position (starting at 1).totalFrames
- The total number of frames in the animation (read-only).duration
- The total running time of the animation, based on the current FPS (read-only).playing
- Boolean: Whether the animation is currently playing (read-only).paused
- Boolean: Whether the animation is currently paused (read-only).stopped
- Boolean: Whether the animation is currently stopped (read-only).These methods will almost certainly be thinned out in a future version.
play()
pause()
resume()
stop()
gotoAndPlay(frame)
gotoAndResume(frame)
nextFrame()
prevFrame()
stateChanged
- When the playback state has changed or any attribute is modified.enterFrame
- At the beginning of each redraw.FAQs
Flipbook style playback of image sequences. Custom HTML element.
The npm package frame-seq receives a total of 6 weekly downloads. As such, frame-seq popularity was classified as not popular.
We found that frame-seq 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.