Go to homepage

Projects /

Switch Icon

An icon transition generator that works with any icons.

View Demo

How to

The Switch Icon component is used to create a transition between two icons. You can use any icon you want. In the demo we use inline SVG, but it works also with icon fonts and SVG symbols.

You can choose among different transition effects by applying one of the following class modifiers:

  • .switch-icon--scale
  • .switch-icon--rotate
  • .switch-icon--flip
  • .switch-icon--slide-up
  • .switch-icon--slide-down
  • .switch-icon--slide-right
  • .switch-icon--slide-left

The transition is triggered by the click on the button (.switch-icon). You can change this behavior, and trigger the transition on :hover by applying the .switch-icon--hover class modifier.

Categories

Bug report & feedback

Component Github page ↗

Project duplicated

Project created

Globals imported

There was an error while trying to export your project. Please try again or contact us.