mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
29 lines
669 B
TypeScript
29 lines
669 B
TypeScript
import Gifffer = require('gifffer');
|
|
|
|
let gifs: HTMLButtonElement[];
|
|
|
|
gifs = Gifffer({
|
|
playButtonStyles: {
|
|
width: '60px',
|
|
height: '60px',
|
|
'border-radius': '30px',
|
|
background: 'rgba(0, 0, 0, 0.3)',
|
|
position: 'absolute',
|
|
top: '50%',
|
|
left: '50%',
|
|
margin: '-30px 0 0 -30px'
|
|
},
|
|
playButtonIconStyles: {
|
|
width: '0',
|
|
height: '0',
|
|
'border-top': '14px solid transparent',
|
|
'border-bottom': '14px solid transparent',
|
|
'border-left': '14px solid rgba(0, 0, 0, 0.5)',
|
|
position: 'absolute',
|
|
left: '26px',
|
|
top: '16px'
|
|
}
|
|
});
|
|
|
|
gifs[0].click();
|