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.
@swup/progress-plugin
Advanced tools
Changelog
[3.2.0] - 2024-04-04
Readme
A swup plugin for displaying a progress bar.
Shows a loading indicator for requests taking longer than ~300ms.
Install the plugin from npm and import it into your bundle.
npm install @swup/progress-plugin
import SwupProgressPlugin from '@swup/progress-plugin';
Or include the minified production file from a CDN:
<script src="https://unpkg.com/@swup/progress-plugin@3"></script>
To run this plugin, include an instance in the swup options.
const swup = new Swup({
plugins: [new SwupProgressPlugin()]
});
The progress bar has a class name of swup-progress-bar
you can use for styling.
.swup-progress-bar {
height: 4px;
background-color: blue;
}
{
className: 'swup-progress-bar',
transition: 300,
delay: 300,
initialValue: 0.25,
finishAnimation: true
}
Class name to use for the container div.
Length of the CSS transition between loading states, in milliseconds.
How long to wait before showing the progress bar, in milliseconds.
Set to 0
to always display the progress bar, even on fast requests.
To create a slightly more "realistic" appearance, the progress bar will start
out at a random position beteen 0 and the value of this option. Set to 0
to
always start from the left.
Whether the progress bar will complete the transition to 100% before hiding.
FAQs
A swup plugin for displaying a progress bar
The npm package @swup/progress-plugin receives a total of 1,348 weekly downloads. As such, @swup/progress-plugin popularity was classified as popular.
We found that @swup/progress-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.