Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jaivinwylde authored Jul 20, 2020
1 parent 37f67d1 commit 313ad95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type_classes.forEach((type) => {
};

type.textContent = "";
type.style.height = type.style.fontSize - 1;
type.style.height = `${parseInt(window.getComputedStyle(type).fontSize) - 1}px`;
const words = type.dataset.words.split(", ");

const type_timeline = anime.timeline({
Expand Down

0 comments on commit 313ad95

Please sign in to comment.