Hindi, asked by mominaisha28, 10 months ago

समय का
महत्तव nibandh​

Answers

Answered by PRATHAMABD
2

Explanation:

&lt;!-- @NOTE: the onclicks are used for touch devices since I'm lazy and didnt use &lt;a&gt; tags --&gt;</p><p>&lt;div class="Menu"&gt;</p><p>&lt;ul class="Menu-list" data-offset="10"&gt;</p><p>&lt;li class="Menu-list-item" data-offset="20" onclick&gt;</p><p>Home</p><p>&lt;span class="Mask"&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/span&gt;</p><p>&lt;span class="Mask"&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/span&gt;</p><p>&lt;/li&gt;</p><p>&lt;li class="Menu-list-item" data-offset="16" onclick&gt;</p><p>About</p><p>&lt;span class="Mask"&gt;&lt;span&gt;About&lt;/span&gt;&lt;/span&gt;</p><p>&lt;span class="Mask"&gt;&lt;span&gt;About&lt;/span&gt;&lt;/span&gt;</p><p>&lt;/li&gt;</p><p>&lt;li class="Menu-list-item" data-offset="12" onclick&gt;</p><p>Work</p><p>&lt;span class="Mask"&gt;&lt;span&gt;Work&lt;/span&gt;&lt;/span&gt;</p><p>&lt;span class="Mask"&gt;&lt;span&gt;Work&lt;/span&gt;&lt;/span&gt;</p><p>&lt;/li&gt;</p><p>&lt;li class="Menu-list-item" data-offset="8" onclick&gt;</p><p>Contact</p><p>&lt;span class="Mask"&gt;&lt;span&gt;Contact&lt;/span&gt;&lt;/span&gt;</p><p>&lt;span class="Mask"&gt;&lt;span&gt;Contact&lt;/span&gt;&lt;/span&gt;</p><p>&lt;/li&gt;</p><p>&lt;/ul&gt;</p><p>&lt;/div&gt;&lt;style&gt;</p><p>// === Variables =====</p><p>$perspective:     60rem;</p><p>$font-size:       4.25rem;</p><p>$split-position:  49%;</p><p>$split-thickness: 4px;</p><p>$split-color:     #FF2C75;</p><p></p><p>// === Settings =====</p><p>%font-settings {</p><p>  font-family: "Gilroy ExtraBold", system-ui, sans-serif;</p><p>  font-style: normal;</p><p>  font-weight: normal;</p><p>  -webkit-font-smoothing: antialiased;</p><p>  -webkit-font-kerning: normal;</p><p>  -webkit-text-size-adjust: 100%;</p><p>}</p><p></p><p>// === Codepen Setup =====</p><p>html,</p><p>body {</p><p>  width: 100vw;</p><p>  height: 100vh;</p><p>}</p><p>body {</p><p>  @extend %font-settings;</p><p>  background: linear-gradient(45deg, #02001F,#1F1B4E);</p><p>  transform-style: preserve-3d;</p><p>  transform: perspective($perspective);</p><p>  position: fixed;</p><p>  display: flex;</p><p>  align-items: center;</p><p>  justify-content: center; </p><p>}</p><p></p><p>// === Menu &lt;ul&gt; =====</p><p>.Menu-list {</p><p>  font-size: $font-size;</p><p>  line-height: 1.2;</p><p>  text-transform: uppercase;</p><p>  text-align: center;</p><p>  display: flex;</p><p>  flex-direction: column;</p><p>  align-items: center;</p><p>  transform: rotateX(-10deg) rotateY(20deg); // overwritten by JS</p><p>}</p><p></p><p>// === Menu item =====</p><p>.Menu-list-item {</p><p>  position: relative;</p><p>  color: transparent;</p><p>  cursor: pointer;</p><p>  </p><p>  // === Split Line =====</p><p>  &amp;::before {</p><p>    content: '';</p><p>    display: block;</p><p>    position: absolute;</p><p>    top: $split-position;</p><p>    left: -10%;</p><p>    right: -10%;</p><p>    height: $split-thickness;</p><p>    border-radius: $split-thickness;</p><p>    margin-top: -($split-thickness / 2);</p><p>    background: $split-color;</p><p>    transform: scale(0);</p><p>    transition: transform .8s cubic-bezier(.16,1.08,.38,.98);</p><p>    z-index: 1;</p><p>  }</p><p>}</p><p></p><p>// === Top/bottom mask =====</p><p>.Mask {</p><p>  display: block;</p><p>  position: absolute;</p><p>  overflow: hidden;</p><p>  color: $split-color;</p><p>  top: 0;</p><p>  height: $split-position;</p><p>  transition: all .8s cubic-bezier(.16,1.08,.38,.98);</p><p>  </p><p>  span { display: block; }</p><p>}</p><p></p><p>// === Bottom mask specific =====</p><p>.Mask + .Mask {</p><p>  top: $split-position - 0.1;</p><p>  height: 100 - $split-position + 0.1;</p><p>  </p><p>  span { transform: translateY(-$split-position); }</p><p>}</p><p></p><p>// === Where the fun stuff happens =====</p><p>.Menu-list-item:hover,</p><p>.Menu-list-item:active {</p><p>  .Mask { color: #FFF; transform: skewX(12deg) translateX(5px); }</p><p>  .Mask + .Mask { transform: skewX(12deg) translateX(-5px); }</p><p>  &amp;::before { transform: scale(1); }</p><p>}&lt;/style&gt;</p><p>

Answered by Joker2020
0

Answer:time

Explanation:

Similar questions