@nbamford123/arwes
Version:
Futuristic Sci-Fi and Cyberpunk Graphical User Interface Framework for Web Apps
56 lines (53 loc) • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (theme) {
return {
root: {
position: 'relative',
display: 'inline-block',
color: function color(props) {
return theme.color[props.layer] && theme.color[props.layer].base;
}
},
children: {
display: 'inline-block'
},
text: {
position: 'absolute',
left: 0,
right: 0,
top: 0,
overflow: 'hidden',
display: 'inline-block',
opacity: 0
},
blink: {
position: 'relative',
width: 0,
height: 0,
display: 'inline-block',
animation: 'arwes-words-blink ' + theme.animTime + 'ms step-end infinite'
},
hide: {
opacity: 0
},
animating: {
'& $children': {
opacity: 0
},
'& $text': {
opacity: 1
}
},
'@keyframes arwes-words-blink': {
'0%, 100%': {
color: 'transparent'
},
'50%': {
color: 'inherit'
}
}
};
};