Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zepto-blur

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zepto-blur

Zepto plugin for dynamic applying CSS blur effect

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Zepto CSS blur plugin

Apply CSS blur effect to element depending on scroll position.

Install

Simply include this code before your </body> tag:

<script type="text/javascript" src="zepto.min.js"></script>
<script type="text/javascript" src="zepto.blur.min.js"></script>

Usage and examples

Zepto-blur will apply CSS blur to element depending on scroll position and blur boundaries provided in options. It means that element will have blur decreased when it top gets to the upper bound and will have blur increased when its bottom gets to the lower bound. By default element is fully blured out.

// Smoothly unblur #foo when it gets to the 700px from top of the browser
// window and blur it back when it gets to the 200px from browser top
$('#foo').blur({edge: 700, bottomEdge: 200});

Options

  • edge — integer. Upper boundary. Remove blur when element gets here.
  • bottomEdge — integer. Lower boundary. Apply blur back here.
  • smoothness — integer. Default is 100. How far from boundaries blur will start changing from 0 to max blur value.
  • max — integer. Maximum blur value.

Keywords

FAQs

Package last updated on 11 Jan 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc