.sticker { position: relative; display: block; flex-shrink: 0; & > img, & > canvas { width: 100%; height: 100%; object-fit: contain; } } .still { display: none; } .sticker[data-paused] { & .animated { display: none; } & .still { display: block; } }