UNPKG

react-atv-parallax

Version:
64 lines (57 loc) 1.27 kB
export default { root: { borderRadius: 5, transformStyle: 'preserve-3d', WebkitTapHighlightColor: 'rgba(#000, 0)' }, container: { position: 'relative', width: '100%', height: '100%', borderRadius: 5, transition: 'all 0.2s ease-out' }, shadowOnHover: { boxShadow: '0 45px 100px rgba(14, 21, 47, 0.4), 0 16px 40px rgba(14, 21, 47, 0.4)' }, layers: { position: 'relative', width: '100%', height: '100%', borderRadius: 5, overflow: 'hidden', transformStyle: 'preserve-3d' }, renderedLayer: { position: 'absolute', width: '104%', height: '104%', top: '-2%', left: '-2%', backgroundRepeat: 'no-repeat', backgroundPosition: 'center', backgroundColor: 'transparent', backgroundSize: 'cover', transition: 'all 0.1s ease-out' }, shadow: { position: 'absolute', top: '5%', left: '5%', width: '90%', height: '90%', transition: 'all 0.2s ease-out', boxShadow: '0 8px 30px rgba(14, 21, 47, 0.6)' }, shine: { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, borderRadius: 5, background: 'linear-gradient(135deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, 0) 60%)' } }