import { LitElement, html, css } from 'lit'
import { StyleableMixin } from '../mixins/StyleableMixin'
import tpeRegistry from '../tpeRegistry'
export class EeFadeIn extends StyleableMixin(LitElement) {
static get styles () {
return [
super.styles,
css`
@-webkit-keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@-moz-keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@-o-keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
:host(:not([no-animation])) {
min-height: 100vh;
overflow-x: hidden;
-webkit-animation: fadeIn 0.3s ease-in;
-moz-animation: fadeIn 0.3s ease-in;
-o-animation: fadeIn 0.3s ease-in;
animation: fadeIn 0.3s ease-in;
}
`
]
}
render () {
return html`
<slot></slot>
`
}
}
tpeRegistry.register('ee-fade-in', EeFadeIn)