
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
image-cover
Advanced tools
It's a simple jQuery plugin used in the specific situations which you want your images has cover' effect. It's based on CSS background.
This plugin is for someone wanting <img/> tag having background cover effect. It can help you.
| Name | Type | Default | Description |
|---|---|---|---|
| Bg_Settings | Object | position: center center repeat: no-repeat size: cover attachment:scroll | These settings are similar from CSS background(Optional) |
| Method | String | Cover | It's provided 5 methods including 'Cover', 'SetHeight' , 'DeviceHeight', 'RemoveCover' and 'ElSameHeight'(Optional) |
| Args | Object | null | Some of the methods need type parameters.(ElSameHeight and SetHeight) (Optional) |
| Fn | Function | null | A function to call once the cover is complete called once per matched element. (Optional) |
It's going to tell you these methods' definition.
It's provided a basic image cover that gives original height to its parent' element.
You can set a custom height for your image. This method has two parameters including 'custom_Height' and 'ratio', therefore you have to settle it.
What is the ratio?
When your custom_Height' value is greater than device' height, it'll be used custom_Height Multiplied by ratio to give a specific height.
Using device height to set image height.
Removing all cover JavaScript
You can let image equal height with a specific element, so you have to give a parameter which is called "El".
$('.selector').ImageCover();
var bg_settings = {
position: 'left center',
attachment: 'fixed',
};
var args = {
custom_Height: 300,
ratio: 0.6,
};
$('.selector').ImageCover(bg_settings,'SetHeight',args,function() {
// Do something after Cover is complete.
});
FAQs
It's a simple jQuery plugin used in the specific situations which you want your images has cover' effect. It's based on CSS background.
We found that image-cover 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.