UNPKG

372 BJavaScriptView Raw
1/** @jsx h */
2import { h } from 'preact';
3import getComponent from './utils/get-styled-component';
4import { transitionIn } from './transition-in';
5
6export const Shield = transitionIn(getComponent({
7 baseClasses: 'fixed transition w-100 h-100 top-0 left-0 bg-blue o-50',
8 options: { transitions: ['firstRender'] },
9 fn: ({ firstRender }) => firstRender ? 'o-0' : ''
10}));
\No newline at end of file