New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

threedbox

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

threedbox

CSS Houdini 3D Box

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

GitHub license

PLAY

Demo

CDN

<script src="https://cdn.jsdelivr.net/gh/jerosoler/3dbox/THREEDBox.js"></script>

NPM

npm install threedbox

How to use

Download THREEDBox.js file.

Javascript:

if ('paintWorklet' in CSS && 'registerProperty' in CSS && 'CSSUnitValue' in window) {
    CSS.registerProperty({
        name: '--threedbox-angle-vertical',
        syntax: '<length>',
        initialValue: '10px',
        inherits: false
    });
    CSS.registerProperty({
        name: '--threedbox-angle-horitzontal',
        syntax: '<length>',
        initialValue: '10px',
        inherits: false
    });
    CSS.registerProperty({
        name: '--threedbox-padding',
        syntax: '<length>',
        initialValue: '50px',
        inherits: false
    });
    CSS.registerProperty({
        name: '--threedbox-color',
        syntax: '<color>',
        initialValue: '#ffffff',
        inherits: false
    });
    CSS.registerProperty({
        name: '--threedbox-color-back',
        syntax: '<color>',
        initialValue: '#ffffff',
        inherits: false
    });
    CSS.registerProperty({
        name: '--threedbox-color-border',
        syntax: '<color>',
        initialValue: '#ffffff',
        inherits: false
    });

    CSS.paintWorklet.addModule('THREEDBox.js');
} else {
    console.log("Not Supported");
    alert("Not Supported");
}

CSS

div {
    padding: 50px;
    --threedbox-color: #ff7d64;
    --threedbox-color-back: #a32107;
    --threedbox-color-border: #ff0000;
    --threedbox-angle-vertical: 15px;
    --threedbox-angle-horitzontal: -15px;
    --threedbox-padding: 50px;
    background-image: paint(threedbox);
}

Keywords

FAQs

Package last updated on 21 Feb 2021

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