Socket
Socket
Sign inDemoInstall

zepto-blur

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zepto-blur

Zepto plugin for dynamic applying CSS blur effect


Version published
Weekly downloads
1
Maintainers
1
Install size
3.09 kB
Created
Weekly downloads
 

Readme

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

Last updated on 11 Jan 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc