2.0.2 • Published 7 years ago

ckd-css v2.0.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

      Downloads     Size


Why?

It’s likely that you started your day with a micro-interaction. By turning off the alarm on your mobile phone, you engaged with a user interface in a single moment.

You will continue to engage throughout the day in these moments with your digital devices. Each one is a micro-interaction. Each one is probably so small you don’t think about it. And each one works because of that simple fact.

As a designer, recognizing the invisibility of micro-interactions is just as important as designing them. You have to create something that feels human and accomplishes a task, making the life of a user easier. You also have to focus on a design that can work in a variety of environments and does not need any instruction or explanation.

Source: The Next Web

Installation

As dependency

You can install ckd-css as node dependency by using Npm or Yarn.

npm install ckd-css --save

Then import the desired animation inside your component:

import 'ckd-css/dist/pulse.css';

From source

If you are using PostCSS, you can also import animations from the src/lib/animations folder, but you need a specific plugins configuration.

From CDN

You can link the animation you want from CDN

<link rel="stylesheet" type="text/css" href="https://unpkg.com/ckd-css/dist/pulse.css">

We also provide the full collection (all animations) in a single file, but we strongly recommend to link only the css you need.

<link rel="stylesheet" type="text/css" href="https://unpkg.com/ckd-css/dist/ckd.css">

Usage

To activate the animation add the data-ckd attribute to your radio/checkbox html element.

<input type="checkbox" data-ckd="splash" />

If you are using custom checkboxes/radios you can use this library by defining the aria-checked attribute:

<label class="CustomCheckbox" data-ckd="pulse" aria-checked="true">
    <input type="checkbox">
    Input label
</label>

Browser support

   

2.0.2

7 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.4.0

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago