# CSS UI animations

**URL:** <https://forum.inductiveautomation.com/t/css-ui-animations/102567>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [February 19, 2025, 4:32pm UTC](https://forum.inductiveautomation.com/t/css-ui-animations/102567 "2025-02-19T16:32:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [February 19, 2025, 4:32pm UTC](https://forum.inductiveautomation.com/t/css-ui-animations/102567/1 "2025-02-19T16:32:11Z")

</div>

Hi,

Is it possible to adapt this CSS code in Ignition ?  
[https://uiverse.io/shah1345/spicy-liger-32](https://uiverse.io/shah1345/spicy-liger-32)

---

<div class="post-metadata">

**Author:** ![dillon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dillon/32/81537_2.png) [@dillon](https://forum.inductiveautomation.com/u/dillon)\
**Post date:** [February 19, 2025, 4:33pm UTC](https://forum.inductiveautomation.com/t/css-ui-animations/102567/2 "2025-02-19T16:33:37Z")

</div>

Have you looked into this and attempted to implement? [Style Classes | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/styles/style-classes#enabling-the-advanced-stylesheet)

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [February 19, 2025, 4:37pm UTC](https://forum.inductiveautomation.com/t/css-ui-animations/102567/3 "2025-02-19T16:37:44Z")

</div>

Yes,

You will probably need to use the Advanced Stylesheet, or add the style props manually.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [February 19, 2025, 4:52pm UTC](https://forum.inductiveautomation.com/t/css-ui-animations/102567/4 "2025-02-19T16:52:05Z")

</div>

I tested with the stylesheet and it works. You need to add `psc`, you can copy what I attached. Drop a button in a view and set the style class to `button2`.

```python
/* From Uiverse.io by shah1345 */ 
.psc-button2 {
  display: inline-block;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #090909;
  padding: 0.7em 1.7em;
  cursor: pointer;
  font-size: 18px;
  border-radius: 0.5em;
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

.psc-button2:active {
  color: #666;
  box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
}

.psc-button2:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.psc-button2:after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: #009087;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.psc-button2:hover {
  color: #ffffff;
  border: 1px solid #009087;
}

.psc-button2:hover:before {
  top: -35%;
  background-color: #009087;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.psc-button2:hover:after {
  top: -45%;
  background-color: #009087;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/1/012acbe5ad68a5a1746d0082805389934d4b01fb.png)

---

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [February 21, 2025, 11:35am UTC](https://forum.inductiveautomation.com/t/css-ui-animations/102567/5 "2025-02-21T11:35:16Z")

</div>

Thanks a lot ! 😊  
I've tried to do integrate this toggle switch which use checkbox but it's pretty hard : [https://uiverse.io/Yaya12085/curvy-frog-97](https://uiverse.io/Yaya12085/curvy-frog-97)
