Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| button-test-simplified [2024/01/24 17:42] – created yiler.huang | button-test-simplified [2024/01/24 17:50] (current) – yiler.huang | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| </ | </ | ||
| < | < | ||
| + | .button { | ||
| + | width: 400px; | ||
| + | height: 400px; | ||
| + | background-color: | ||
| + | position: relative; | ||
| + | overflow: hidden; | ||
| + | margin: 3px; | ||
| + | } | ||
| | | ||
| + | .image { | ||
| + | position: absolute; | ||
| + | width: 100%; | ||
| + | height: 100%; | ||
| + | filter: blur(0px); | ||
| + | transition: filter 0.5s; | ||
| + | } | ||
| + | |||
| + | .title { | ||
| + | font-family: | ||
| + | position: absolute; | ||
| + | top: -3%; | ||
| + | left: 5%; | ||
| + | font-size: 36px; | ||
| + | color: white; | ||
| + | font-weight: | ||
| + | } | ||
| + | |||
| + | .description { | ||
| + | line-height: | ||
| + | position: absolute; | ||
| + | top: 15%; | ||
| + | left: 5%; | ||
| + | font-size: 21px; | ||
| + | color: white; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s; | ||
| + | overflow-wrap: | ||
| + | word-break: normal; | ||
| + | max-width: 330px; | ||
| + | color: #e7e7e7; | ||
| + | font-weight: | ||
| + | } | ||
| + | |||
| + | .title.worth { | ||
| + | position: absolute; | ||
| + | top: -15%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s, top 0.2s; | ||
| + | color: #FFECB3; | ||
| + | } | ||
| + | |||
| + | .title.and { | ||
| + | position: absolute; | ||
| + | left: 33.3%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s; | ||
| + | color: #e7e7e7; | ||
| + | } | ||
| + | |||
| + | .title.value { | ||
| + | position: absolute; | ||
| + | left: 60%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s, left 0.2s; | ||
| + | color: #8cb6de; | ||
| + | } | ||
| + | |||
| + | .title.success { | ||
| + | position: absolute; | ||
| + | top: -15%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s, top 0.2s; | ||
| + | color: #8bdaa5; | ||
| + | } | ||
| + | |||
| + | .title.gender { | ||
| + | position: absolute; | ||
| + | top: -15%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s, top 0.2s; | ||
| + | color: #b6b6f0; | ||
| + | } | ||
| + | |||
| + | .title.and-1 { | ||
| + | position: absolute; | ||
| + | left: 39%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s; | ||
| + | color: #e7e7e7; | ||
| + | } | ||
| + | |||
| + | .title.society { | ||
| + | position: absolute; | ||
| + | left: 64%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s, left 0.2s; | ||
| + | color: #96e3e3; | ||
| + | } | ||
| + | |||
| + | .title.women { | ||
| + | position: absolute; | ||
| + | top: -15%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s, top 0.2s; | ||
| + | color: #F7CAC9; | ||
| + | } | ||
| + | |||
| + | .title.line { | ||
| + | position: absolute; | ||
| + | left: 40%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s; | ||
| + | color: #e7e7e7; | ||
| + | } | ||
| + | |||
| + | .title.workplace { | ||
| + | position: absolute; | ||
| + | left: 50%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s, left 0.2s; | ||
| + | color: #a8cff0; | ||
| + | } | ||
| + | | ||
| + | .title.genetics { | ||
| + | position: absolute; | ||
| + | top: -15%; | ||
| + | opacity: 0; | ||
| + | transition: opacity 0.2s, top 0.2s; | ||
| + | color: #ddf0a8; | ||
| + | } | ||
| + | |||
| + | .overlay { | ||
| + | width: 100%; | ||
| + | height: 20%; | ||
| + | background-color: | ||
| + | position: absolute; | ||
| + | transform-origin: | ||
| + | transform: scaleX(0); | ||
| + | transition: transform 0.15s; | ||
| + | opacity: 0.8; | ||
| + | } | ||
| + | |||
| + | .overlay.two { | ||
| + | top: 20%; | ||
| + | transform-origin: | ||
| + | transition-delay: | ||
| + | } | ||
| + | |||
| + | .overlay.three { | ||
| + | top: 40%; | ||
| + | transition-delay: | ||
| + | } | ||
| + | |||
| + | .overlay.four { | ||
| + | top: 60%; | ||
| + | transform-origin: | ||
| + | transition-delay: | ||
| + | } | ||
| + | |||
| + | .overlay.five { | ||
| + | top: 80%; | ||
| + | transition-delay: | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | cursor: pointer; | ||
| + | } | ||
| + | |||
| + | |||
| + | .button: | ||
| + | filter: blur(7px); | ||
| + | transition: filter 0.9s; | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | transform: scaleX(1); | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | transform: scaleX(1); | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | transition: top 0.2s, opacity 0.2s; | ||
| + | transition-delay: | ||
| + | opacity: 1; | ||
| + | top: -3%; | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | opacity: 1; | ||
| + | transition: opacity 0.2s; | ||
| + | transition-delay: | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | transition: left 0.2s, opacity 0.2s; | ||
| + | transition-delay: | ||
| + | opacity: 1; | ||
| + | left: 51.8%; | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | transition: top 0.2s, opacity 0.2s; | ||
| + | transition-delay: | ||
| + | opacity: 1; | ||
| + | top: -3%; | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | transition: top 0.2s, opacity 0.2s; | ||
| + | transition-delay: | ||
| + | opacity: 1; | ||
| + | top: -3%; | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | opacity: 1; | ||
| + | transition: opacity 0.2s; | ||
| + | transition-delay: | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | transition: left 0.2s, opacity 0.2s; | ||
| + | transition-delay: | ||
| + | opacity: 1; | ||
| + | left: 56.5%; | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | transition: top 0.2s, opacity 0.2s; | ||
| + | transition-delay: | ||
| + | opacity: 1; | ||
| + | top: -3%; | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | opacity: 1; | ||
| + | transition: opacity 0.2s; | ||
| + | transition-delay: | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | transition: left 0.2s, opacity 0.2s; | ||
| + | transition-delay: | ||
| + | opacity: 1; | ||
| + | left: 45.2%; | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | transition: top 0.2s, opacity 0.2s; | ||
| + | transition-delay: | ||
| + | opacity: 1; | ||
| + | top: -3%; | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | opacity: 1; | ||
| + | transition: opacity 0.2s; | ||
| + | transition-delay: | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | opacity: 1; | ||
| + | transition: opacity 0.2s; | ||
| + | transition-delay: | ||
| + | } | ||
| + | |||
| + | .button: | ||
| + | opacity: 1; | ||
| + | transition: opacity 0.2s; | ||
| + | transition-delay: | ||
| + | } | ||
| + | |||
| + | .button { | ||
| + | float: left; | ||
| + | font-family: | ||
| + | } | ||
| </ | </ | ||
| </ | </ | ||