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

translucent

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

translucent

Translucent plastic card theme.

  • 1.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-73.33%
Maintainers
1
Weekly downloads
 
Created
Source

Translucent

Transparent card theme - jQuery plugin.

Title image

Demo : https://byeolbit.github.io/translucent

Translucent is a jQuery plugin for make transparent/translucent design element in webpage.

## What you need to use Translucent - jQuery - Browser support
Tested browsers
Firefox 35.0Chrome 53.0Safari 6Edge 38.0Opera 40.0
FirefoxChromeSafariEdgeOpera

※ Not support Internet Explorer. (It does not support CSS filter)

How to use translucent

1. Get plugin

  • Download zip or tar.gz archive.
  • npm : npm install translucent

2. Insert script into your HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="jquery.translucent.min.js"></script>

3. Make your background element and card element in HTML

<div id="your-background">
    <div class="your-card">
        <div class="tl-card-contents">
            <!-- your card contents here -->
        </div>
    </div>
</div>

4. Apply translucent to your card element in script

$('.your-card').translucent('#your-background');

or you can customize options.

$('.your-card').translucent('#your-background',{
    filterValue : 5,     // int
    cardColor : 'clear', // preset color or your own color
    shadow : true        // true or false
});

Plugin description

.translucent( selector , [ options ] )

Apply translucent card them to element.

Selector
  • type : string
  • description : Selector for your background element. It must be id.
Options
AttributeTypeDefaultDescription
filterValuenumber5This is blur value.
cardColorstring'clear'Color of card. You can use preset or your own color. Preset : 'clear', 'white', 'grey', 'black'
shadowbooleantrueThis decides shadow effect of element. true applies effect.

.translucent( 'blur' , value )

Change amount of blur for background.

Value
  • type : number
  • description : Value for blur background. 0 will get clear background.
Example
// Apply 20 blur to background
$('.your-element').translucent('blur', 20);

.translucent( 'destroy' )

Destroy translucent from the element.

Example
$('.your-element').translucent('destroy');

## Update history

byeolbit.github.io

Keywords

FAQs

Package last updated on 18 Feb 2017

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