Socket
Socket
Sign inDemoInstall

stylar

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylar

Cross Browser CSS Style Helper


Version published
Weekly downloads
473
decreased by-24.44%
Maintainers
1
Weekly downloads
 
Created
Source

Stylar

Badass CSS Styling Helpers

Usage

Get the current transform on an element

console.log(stylar(targetElement, 'transform'));

Update the transform of an element:

stylar(targetElement, 'transform', 'translate(50px, 100px)');

Get the current transform of an element using the get helper:

stylar(targetElement).get('transform');

Set the current transform of the element using the set helper (chainable):

stylar(targetElement)
    .set('transform', 'translate(50px, 100px)')
    .set('background-color', 'red');

NOTE: You can also use the set forms to update multiple elements at once:

stylar([element1, element2], 'transform', 'translate(50px, 100px)');

FAQs

Package last updated on 23 Apr 2014

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