Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
ember-fast-marquee
Advanced tools
A lightweight Ember component that uses CSS animations to create silky smooth marquees.
Ember Fast Marquee is a lightweight ember component that utilizes the power of CSS animations to create silky smooth marquees.
Inspired by React Fast Marquee
@fillRow={{true}}
to fill any left over white space if desiredember install ember-fast-marquee
To use the component, first you need to import marquee.css
into your application somehow.
If you are using embroider simply import the css into your application
// application.js
import "ember-fast-marquee/marquee.css";
Or import into your css as your would other third party CSS eg.
/* app.css */
@import "node_modules/ember-fast-marquee/marquee.css";
Then wrap the <Marquee>
component around any component or text you'd like to slide.
<Marquee>
I can be a component, multiple components, plain html or just some text.
</Marquee>
All options with defaults
<Marquee
@fillRow={{false}}
@play={{true}}
@pauseOnHover={{false}}
@pauseOnClick={{false}}
@direction="left"
@speed={{20}}
@delay={{0}}
@loop={{0}}
@gradient={{true}}
@gradientColor="255,255,255"
@gradientWidth="5%"
@onFinish={{this.someAction}}
@onCycleComplete={{this.anotherAction}}
class="my-own-fancy-class"
>
<div class="photo">
<img src="https://i.pravatar.cc/150?img=3" />
</div>
<div class="photo">
<img src="https://i.pravatar.cc/150?img=3" />
</div>
<div class="photo">
<img src="https://i.pravatar.cc/150?img=3" />
</div>
</Marquee>
Property | Type | Default | Description |
---|---|---|---|
fillRow | boolean | false | Whether to fill empty spaces with repeat content |
play | boolean | true | Whether to play or pause the marquee |
pauseOnHover | boolean | false | Whether to pause the marquee when hovered |
pauseOnClick | boolean | false | Whether to pause the marquee when clicked |
direction | "left" or "right" | "left" | The direction the marquee is sliding |
speed | number | 20 | Speed calculated as pixels/second |
delay | number | 0 | Duration to delay the animation after render, in seconds |
loop | number | 0 | The number of times the marquee should loop, 0 is equivalent to infinite |
gradient | boolean | false | Whether to show the gradient or not |
gradientColor | string | "255,255,255" | The rgb color of the gradient as a string of RGB values separated by commas |
gradientWidth | number or string | "5%" | The width of the gradient on either side, if a number is passed % is used, if a string is passed it is used as is to allow other units to be used |
onFinish | Function | undefined | A callback for when the marquee finishes scrolling and stops. Only calls if loop is non-zero. |
onCycleComplete | Function | undefined | A callback for when the marquee finishes a loop. Does not call if maximum loops are reached (use onFinish instead). |
See the Contributing guide for details.
This project is licensed under the MIT License.
v0.1.6 (2022-06-01)
ember-fast-marquee
, test-app
ember-fast-marquee
ember-fast-marquee
FAQs
A lightweight Ember component that uses CSS animations to create silky smooth marquees.
The npm package ember-fast-marquee receives a total of 11 weekly downloads. As such, ember-fast-marquee popularity was classified as not popular.
We found that ember-fast-marquee 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.