Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------- THIS IS THE HTML ---------------------
- <!-- alert image -->
- <div id="alert-image-wrap">
- <div id="alert-image">{img}</div>
- </div>
- <!-- main alert box window -->
- <div id="alert-text-wrap">
- <!-- alert text -->
- <div id="alert-text">
- <!-- alert message -->
- <!-- messageTemplate will be replaced with your message template -->
- <!-- for example : {name} is now following! or {name} donated {amount} -->
- <div id="alert-message">{name}</div>
- </div>
- </div>
- --------------- THIS IS THE CSS ----------------------
- .widget-AlertBox {
- position: relative;
- }
- body,
- html {
- height: 100%;
- width: 100%;
- overflow: hidden;
- }
- #wrap {
- position: relative;
- height: 100%;
- width: 100%;
- }
- #alert-box {
- height: 100%;
- width: 100%;
- position: absolute;
- }
- #alert-box.hidden,
- .hidden {
- opacity: 0;
- }
- #alert-text {
- padding: 20px;
- }
- #alert-message,
- #alert-user-message {
- text-align: center;
- }
- #alert-user-message img {
- vertical-align: middle;
- height: 1em;
- }
- #alert-image {
- position: relative;
- }
- #alert-image video {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- #alert-message {
- display: inline-block;
- animation-duration: 3s;
- animation-name: fade;
- animation-delay: 3s;
- opacity: 0;
- width: 375px;
- height: 160px;
- margin-left: 285px;
- margin-top: 90px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- @keyframes fade {
- 0% {opacity: 1}
- 90% {opacity: 1}
- 100% {opacity: 0}
- }
- #alert-image {
- z-index: 6;
- position: relative;
- }
- #alert-text {
- z-index: 6;
- position: relative;
- }
- #alert-text-wrap {
- z-index: 6;
- position: relative;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement