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

instyll

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instyll

Instill your stylus with super powers 🎨✨📈

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Instyll

Instill your stylus with super powers 🎨✨📈

A collection of mixins to make your Stylus trend upwards!

Install

npm install --save instyll

Then use it wherever you use stylus:

const instyll = require('instyll');

function compile(str, path) {
  return stylus(str)
    .set('filename', path)
    .use(instyll());
}

Mixins

tween(properties, timing, easing)

An alias for transition, but with better defaults and semantics (IMO). All arguments are optional. Defaults are:

properties = all
timing = 0.8s
easing = cubic-bezier(0, 0, 0.25, 1)

Example:

.button
  background green
  tween()

  &:hover
    background red

.box
  position absolute
  top 0
  left 0
  transform translateX(0px)
  tween transform

  &:hover
    transform translateX(200px)

.boxFadeTwoSecondEase
  position absolute
  top 0
  left 0
  transform translateX(0px)
  opacity 1
  tween transform opacity, 2s, ease

  &:hover
    transform translateX(200px)
    opacity 0
uninteractive()

Completely disable an element. Useful for disabling form fields and UI controls.

Example:

.disabled
  uninteractive()

FAQs

Package last updated on 31 Jan 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