Code Monkey home page Code Monkey logo

shadowize's Introduction

Shadowize

Apply shadow effects and additional styling options to specified elements with ease.

Installation

Install the package using npm:

npm install shadowize --save

Usage

Import the Shadowize function and apply it to your elements.

// Import the Shadowize function
import { Shadowize } from 'shadowize';

// Select elements with a specific class and apply shadow effects
Shadowize('.shadowize', {
  shadow_type: 'hard', // 'hard' or 'soft' shadow
  padding: true,
  border_radius: true,
  border: true,
  margin: true,
  width: true,
  height: true,
  background: true,
});

Parameters

selector (string): The CSS selector for the target elements. options (object): An object containing styling options.

Options

shadow_type (string): Specify the type of shadow ('hard' or 'soft'). Defaults to 'soft'. padding (boolean): Add padding to the elements. Defaults to false. border_radius (boolean): Apply border radius to the elements. Defaults to false. border (boolean): Add a border to the elements. Defaults to false. margin (boolean): Add margin to the elements. Defaults to false. width (boolean): Set the width of the elements to 100%. Defaults to false. height (boolean): Set the height of the elements to 100%. Defaults to false. background (boolean): Set a background color to the elements. Defaults to false.

Examples

Apply a soft shadow with additional styling options:

Shadowize('.custom-elements', {
  shadow_type: 'soft',
  padding: true,
 
});

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please read the Contributing Guide for details on how to contribute to this project.

Issues

Found a bug or have a feature request? Create an issue on the issue tracker.

Changelog

See the CHANGELOG.md file for details about changes to the project.

Acknowledgments

Special thanks to [Xanmoy] for their contributions..

shadowize's People

Contributors

xanmoy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.