I'm trying to line up an animation I have made with the dot in an exclamation point of some text. It is currently the animation alone for our loading screen, and the code is as follows:
.loading-icon {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
width: 0; height: 0; margin: auto;
@include border-radius(100%);
@include box-shadow(inset 0 0 0 $size/2 $c);
-webkit-animation: load $ease infinite;
}
@-webkit-keyframes load {
100% { width: $size; height: $size; box-shadow: none; }
}
$size is 60px $ease is 1s ease out and $c is just the color I'm using. Here is a codepen illustrating the animation: http://cdpn.io/CczlK
So, say I had a word like aaa!aaa and wanted to align the animation with it at the center of the page. I've been playing with a way to get it done in a hacky way but I really would like it to work across more than just my browser window. Currently to call the animation I have:
h1
aaa!aaa
.loading-icon
(it is written in emblem)
Ideas?