New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

css-houdini-rect

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

css-houdini-rect

CSS Houdini Background rect

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

CSS Houdini [Worklet Name]

A CSS Houdini Worklet to show connected nodes.

CSS Houdini [Worklet Name]

Getting started

1. Load the worklet

Using CDN is the easiest way to add the library:

if ('paintWorklet' in CSS) {
  CSS.paintWorklet.addModule('[URL]');
}

Or, download the latest Worklet name and import it to your web page:

if ('paintWorklet' in CSS) {
  CSS.paintWorklet.addModule('[LOCAL_PATH]');
}

You can use the polyfill

To add support for all moder browsers, you can load the worklet with css-paint-polyfill fallback.

<script>
  ;(async function() {
    if (CSS['paintWorklet'] === undefined)
      await import('https://unpkg.com/css-paint-polyfill')

    CSS.paintWorklet.addModule('./[file].js')
  })()
</script>

3. Ready to use it in your CSS!

To use [Worklet Name] worlet you need define some custom properties with values and add the value paint([worklet_name]) on background-image property.

The worklet has default values if you don't define these

.element {
  /* CSS code */
}
propertydescriptiondefault value
--workletName

License

MIT License

Copyright (c) 2020 CSS Houdini

Keywords

houdini

FAQs

Package last updated on 12 Dec 2020

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