Line 2,010: | Line 2,010: | ||
} | } | ||
− | + | #wrapper { | |
− | + | position: absolute; | |
− | border- | + | background-color: #FFF; |
+ | left: 50%; | ||
+ | top: 50%; | ||
+ | width: 600px; | ||
+ | height: 400px; | ||
+ | padding: 24px; | ||
+ | overflow: hidden; | ||
+ | border-radius: 1.5px; | ||
+ | box-shadow: 0 3px 6px rgba(0, 0, 0, .16), | ||
+ | 0 3px 6px rgba(0, 0, 0, .23); | ||
+ | -webkit-transform: translate(-50%, -50%); | ||
+ | transform: translate(-50%, -50%); | ||
} | } | ||
− | . | + | .water-drop { |
− | + | visibility: hidden; | |
− | margin-left: | + | position: absolute; |
− | + | z-index: 30; | |
+ | margin-left: 6px; | ||
+ | background: url(../images/waterdrop.svg) 0 0 no-repeat; | ||
+ | width: 42px; | ||
+ | height: 58px; | ||
+ | background-size: 42px 58px; | ||
} | } | ||
− | + | .button-floating-clicked .water-drop { | |
− | . | + | -webkit-animation: waterDrop .8s cubic-bezier(1, 0, .5, 0); |
− | + | animation: waterDrop .8s cubic-bezier(1, 0, .5, 0); | |
− | + | } | |
+ | @-webkit-keyframes waterDrop { | ||
+ | 0% { | ||
+ | visibility: visible; | ||
+ | } | ||
+ | 75% { | ||
+ | opacity: .6; | ||
+ | } | ||
+ | 87.5% { | ||
+ | opacity: .4; | ||
+ | } | ||
+ | 100% { | ||
+ | -webkit-transform: translateY(294px); | ||
+ | opacity: 0; | ||
+ | } | ||
+ | } | ||
+ | @keyframes waterDrop { | ||
+ | 0% { | ||
+ | visibility: visible; | ||
+ | } | ||
+ | 75% { | ||
+ | opacity: .6; | ||
+ | } | ||
+ | 87.5% { | ||
+ | opacity: .4; | ||
+ | } | ||
+ | 100% { | ||
+ | transform: translateY(294px); | ||
+ | opacity: 0; | ||
+ | } | ||
} | } | ||
− | . | + | .button { |
− | + | position: relative; | |
− | + | border-radius: 50%; | |
− | + | margin-bottom: 18px; | |
− | + | } | |
− | + | .button:last-child { | |
− | + | margin-bottom: 0; | |
− | + | ||
} | } | ||
− | . | + | .button-floating::before { |
− | content: | + | content: "+"; |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
+ | .button-floating, .button-floating-shadow { | ||
+ | width: 54px; | ||
+ | height: 54px; | ||
+ | } | ||
+ | .button-floating { | ||
+ | z-index: 40; | ||
+ | cursor: pointer; | ||
+ | background-color: #2196F3; | ||
+ | color: #FFF; | ||
+ | font-size: 30px; | ||
+ | text-align: center; | ||
+ | line-height: 54px; | ||
+ | -webkit-transition-duration: .3s; | ||
+ | transition-duration: .3s; | ||
+ | } | ||
+ | .button-floating-clicked .button-floating { | ||
+ | -webkit-transform: rotate(225deg); | ||
+ | transform: rotate(225deg); | ||
+ | } | ||
+ | |||
+ | |||
</style> | </style> | ||
</html> | </html> |
Revision as of 22:03, 17 October 2018