Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- #bloggernotificationWrap {
- display: none;
- height: 71px;
- margin-top: 9px;
- position: relative;
- width: 100%;
- z-index: 999999;
- }
- .button {
- display: inline-block;
- padding: 5px 10px;
- border: 3px solid #3498db;
- color: #ddd;
- text-decoration: none;
- font-weight: bold;
- text-transform: uppercase;
- margin: 5px 5px 0 10px;
- transition: all .2s;
- }
- .button:hover {
- background: #3498db;
- color: #fff;
- }
- #notification-bar {
- position:fixed; display:block; z-index: 100000;
- }
- .notification-bar {
- position: absolute;
- width: 100%;
- top: 0px;
- }
- .notification-text {
- background-color: #2980B9;
- padding: 15px;
- color: #fff;
- font-size: 14px;
- text-align: center;
- position: absolute;
- width: 100%;
- -webkit-animation: initiate 350ms ease;
- -moz-animation: initiate 350ms ease;
- -o-animation: initiate 350ms ease;
- animation: initiate 350ms ease;
- }
- .notification-bar input {
- display: none;
- }
- .notification-bar label {
- cursor: pointer;
- color: #fff;
- position: absolute;
- z-index: 5;
- display: inline-block;
- text-indent: 100%;
- white-space: nowrap;
- overflow: hidden;
- }
- .notification-bar label[for=hide] {
- right: 15px;
- top: 15px;
- width: 38px;
- height: 38px;
- background: url('http://2.bp.blogspot.com/-PGYIV79ZtTk/Uxbn_Pnh8cI/AAAAAAAACtQ/d-JeNX8bu5M/s1600/arrow_down_alt1-32.png') no-repeat center center;
- -webkit-animation: initiate 350ms ease;
- -moz-animation: initiate 350ms ease;
- -o-animation: initiate 350ms ease;
- animation: initiate 350ms ease;
- }
- .notification-bar label[for=show] {
- width: 45px;
- height: 50px;
- border-radius: 0px 0px 3px 3px;
- right: 10px;
- background: url('http://3.bp.blogspot.com/-gsITKBL27qc/Uxbn_cPc3CI/AAAAAAAACtU/vBc4OW4YvTk/s1600/arrow_up_alt1-32.png') no-repeat center center #2980B9;
- }
- /* Function */
- .notification-bar input[value=show]:checked ~ label[for=show],
- .notification-bar input[value=hide]:checked ~ label[for=hide],
- .notification-bar input[value=hide]:checked ~ .notification-text {
- -webkit-transition: ease 350ms;
- -moz-transition: ease 350ms;
- -o-transition: ease 350ms;
- transition: ease 350ms;
- -webkit-transform: translateY(-100%);
- -moz-transform: translateY(-100%);
- -o-transform: translateY(-100%);
- transform: translateY(-100%);
- }
- .notification-bar input[value=hide]:checked ~ label[for=show],
- .notification-bar input[value=show]:checked ~ label[for=hide],
- .notification-bar input[value=show]:checked ~ .notification-text {
- -webkit-transition: ease 350ms;
- -moz-transition: ease 350ms;
- -o-transition: ease 350ms;
- transition: ease 350ms;
- -webkit-transform: translateY(0%);
- -moz-transform: translateY(0%);
- -o-transform: translateY(0%);
- transform: translateY(0%);
- }
- /* Inital Animation */
- @-webkit-keyframes initiate {
- 0% {
- -webkit-transform:translateY(-100%);
- }
- 50% {
- -webkit-transform:translateY(-50%);
- }
- 100% {
- -webkit-transform:translateY(0%);
- }
- }
- @-moz-keyframes initiate {
- 0% {
- -moz-transform:translateY(-100%);
- }
- 50% {
- -moz-transform:translateY(-50%);
- }
- 100% {
- -moz-transform:translateY(0%);
- }
- }
- @-o-keyframes initiate {
- 0% {
- -o-transform:translateY(-100%);
- }
- 50% {
- -o-transform:translateY(-50%);
- }
- 100% {
- -o-transform:translateY(0%);
- }
- }
- @keyframes initiate {
- 0% {
- transform:translateY(-100%);
- }
- 50% {
- transform:translateY(-50%);
- }
- 100% {
- transform:translateY(0%);
- }
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement