UNPKG

decentraland-ui

Version:

Decentraland's UI components and styles

68 lines (63 loc) 1.24 kB
.dcl.notifications { display: flex; justify-content: center; align-items: center; flex-direction: column; position: relative; } .dcl.notifications-bell { display: flex; background: none; border: none; padding: 0; margin: 0; cursor: pointer; align-items: center; position: relative; } .dcl.notifications-bell.notifications-active { animation: shake 0.8s; animation-iteration-count: 4; } .dcl.notifications-counter { width: 16px; height: 16px; position: relative; left: -13px; cursor: pointer; } @keyframes shake { 0% { transform: translate(1px, 1px) rotate(0deg); } 10% { transform: translate(-1px, -2px) rotate(-1deg); } 20% { transform: translate(-2px, 0px) rotate(1deg); } 30% { transform: translate(2px, 2px) rotate(0deg); } 40% { transform: translate(1px, -1px) rotate(1deg); } 50% { transform: translate(-1px, 2px) rotate(-1deg); } 60% { transform: translate(-2px, 1px) rotate(0deg); } 70% { transform: translate(2px, 1px) rotate(-1deg); } 80% { transform: translate(-1px, -1px) rotate(1deg); } 90% { transform: translate(1px, 2px) rotate(0deg); } 100% { transform: translate(1px, -2px) rotate(-1deg); } }