diff --git a/src/generators/shared/processCss.js b/src/generators/shared/processCss.js index b6e483db3b..91ca055d31 100644 --- a/src/generators/shared/processCss.js +++ b/src/generators/shared/processCss.js @@ -14,7 +14,7 @@ export default function processCss ( parsed, code ) { if ( expression.type === 'Identifier' ) { const newName = `svelte-${parsed.hash}-${expression.name}`; code.overwrite( expression.start, expression.end, newName ); - keyframes.set( expression.name.toLowerCase(), newName ); + keyframes.set( expression.name, newName ); } }); } else if ( node.children ) { @@ -56,7 +56,7 @@ export default function processCss ( parsed, code ) { if ( property === 'animation' || property === 'animation-name' ) { block.value.children.forEach( block => { if ( block.type === 'Identifier' ) { - const name = block.name.toLowerCase(); + const name = block.name; if ( keyframes.has( name ) ) { code.overwrite( block.start, block.end, keyframes.get( name ) ); }