fit-text helper now triggers lazyily when slide enters view distance

This commit is contained in:
Hakim El Hattab
2020-06-09 10:28:01 +02:00
parent f231c53b9c
commit aa6677911c
6 changed files with 24 additions and 14 deletions

View File

@ -16,6 +16,12 @@
box-sizing: border-box;
}
// Text that auto-fits it's container
.reveal .r-fit-text {
display: inline-block; // https://github.com/rikschennink/fitty#performance
white-space: nowrap;
}
// Stack multiple elements on top of each other
.reveal .r-stack {
display: grid;