Coder Social home page Coder Social logo

extrude.css's Introduction

extrude.css

a simple extrusion css library

Installation

Download the files in the extrude folder in the repo and put them in your project

Usage

To use extrude.css in your website, simply drop the stylesheet into your document's <head>, and add the class extrude to an element, along with the extrusion class.

<head>
  <link rel="stylesheet" href="extrude.min.css">
</head>

Extrusion

To extrude an element, add the class extrude to an element. Finally you need to add one of the extrude type classes which can be found on the demo site : (https://dazon.xyz/extrude.css/index) Full example:

<h1 class="extrude extrude-small-br-b-h">Example</h1>

Check out all the extrusion types here!

Changing Colors & speed

Color

Changing the color of your extrusion is as simple as adding

  <style>
      :root {
          --extrude-color: #02feaa;
      }
  </style>

to the head of your document. you can change the extrude color here as you wish.

Speed

Changing the speed of your extrusion is as simple as adding

  <style>
      .extrude {
          transition: transform 0.4s, box-shadow 0.4s, text-shadow 0.4s;
      }
  </style>

to the head of your document. you can change the extrude speed here as you wish. to keep the look of the preset speed, set all three speeds to the same speed.

License

Extrude.css is licensed under the MIT license. (https://opensource.org/licenses/MIT)

extrude.css's People

Contributors

noahpin 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.