Skip to content

Commit

Permalink
feat(Easing): expose default CSS easing with --easing-default (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Sep 14, 2022
1 parent 56829ef commit c18b021
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ import SkipLinkExample from 'Docs/uilib/usage/accessibility/examples/skip-link-e

Reusing classes in the markup instead of using SCSS extends or _mixins_ will prevent duplication in the `@dnb/eufemia`. So also your application will have good benefits from reusing these helper classes.

## Easing

`var(--easing-default)`

You can use the internal Eufemia easing function.

```css
.animation-element {
transition: transform 1s var(--easing-default);
}
```

## Core style

`dnb-core-style`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
*
*/

:root {
--easing-default: #{$defaultEasing};
}

// Focus management
.dnb-no-focus {
outline: none;
Expand Down

0 comments on commit c18b021

Please sign in to comment.