Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
overflow-marquee
Advanced tools
Readme
Angular directive to make text marquee if it overflows its container, in the style of old iOS music app. Instead of fully scrolling off-screen then looping, it only scrolls until the overflowed text is shown (i.e., the entire string has been displayed to its last character).
Run npm start
to see the demo.
Via NPM: npm install --save overflow-marquee
This will also give you the demo and the tests.
If you simply want to include the code, get the overflow-marquee.min.js
and overflow-marquee.min.css
from the /build
folder, and include it in your page.
Rollcall for all options!
<html>
<head>
<!-- Include jQuery, Angular, and the overflow-marquee code here -->
<script>
angular.module('Stuff', ['overflow-marquee']);
angular.module('Stuff').controller(function($scope) {
$scope.woo = false;
});
</script>
<style>
html, body {
margin: 0; padding: 0; background: #E9967A; font-family: Helvetica, Arial, sans-serif;
}
#content {
width: 400px; height: 40px; line-height: 40px; position: relative; top: calc(50% - 20px); margin: 8px auto; background: #FFF;
}
</style>
</head>
<body ng-app="Stuff">
<div id="content">
<span overflow-marquee
overflow-marquee-speed=1
overflow-marquee-pause="foo"
ng-click="foo = !foo"
ng-init="foo = false">Mama just killed a man; put a gun against his head, pulled the trigger now he's dead.
</div>
<body>
</html>
All options are optional. :wink:
Pixels shifted per 25 milliseconds. Default is 1.
Use overflow-marquee-pause
to pause conditionally. Bind it to a variable or an expression. Go crazy with as many as 50 marquees on one page!
The tests are made with Karma, Mocha, and Chai. Run them with:
npm test
Contributions are welcome!
FAQs
Angular directive to turn long elements to a marquee only if it overflows.
The npm package overflow-marquee receives a total of 0 weekly downloads. As such, overflow-marquee popularity was classified as not popular.
We found that overflow-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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.