Skip to content

Commit

Permalink
Update animation plugin to use nameClass
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Oct 16, 2020
1 parent 6180627 commit b84049f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/animation.js
@@ -1,7 +1,8 @@
import _ from 'lodash'
import nameClass from '../util/nameClass'

export default function() {
return function({ addUtilities, e, theme, variants }) {
return function({ addUtilities, theme, variants }) {
const keyframesConfig = theme('keyframes')
const keyframesStyles = _.fromPairs(
_.toPairs(keyframesConfig).map(([name, keyframes]) => {
Expand All @@ -14,7 +15,7 @@ export default function() {
const utilities = _.fromPairs(
_.toPairs(animationConfig).map(([suffix, animation]) => {
return [
`.${e(`animate-${suffix}`)}`,
nameClass('animate', suffix),
{
animation,
},
Expand Down

0 comments on commit b84049f

Please sign in to comment.