Music, asked by roshini154, 8 months ago

please tell some brainly codes of animated ones. please don't answer if you don't know

Answers

Answered by jisso30
14

Answer:

 </p><p></p><p>&lt;!DOCTYPE html&gt;</p><p></p><p>&lt;html lang="en"&gt;</p><p></p><p>&lt;head&gt;</p><p></p><p>&lt;title&gt;Bulb&lt;/title&gt;</p><p></p><p>&lt;/head&gt;</p><p></p><p>&lt;body&gt;</p><p></p><p>&lt;main&gt;</p><p></p><p>&lt;input class="l" type="checkbox"&gt;</p><p></p><p>&lt;/main&gt;</p><p></p><p>&lt;style&gt;</p><p></p><p>*, *:before, *:after {</p><p></p><p>box-sizing: border-box;</p><p></p><p>margin: 0;</p><p></p><p>padding: 0;</p><p></p><p>}</p><p></p><p>:root {</p><p></p><p>/* minFontSize + (maxFontSize - minFontSize) * (100vw - minVWidth)/(maxVWidth - minVWidth) */</p><p></p><p>font-size: calc(64px + (80 - 64) * (100vw - 320px)/(960 - 320));</p><p></p><p>}</p><p></p><p>body, input {</p><p></p><p>font-size: 1em;</p><p></p><p>line-height: 1.5;</p><p></p><p>}</p><p></p><p>body {</p><p></p><p>background: #bbb;</p><p></p><p>}</p><p></p><p>input {</p><p></p><p>display: block;</p><p></p><p>margin-bottom: 1.5em;</p><p></p><p>}</p><p></p><p>main {</p><p></p><p>padding: 1.5em 0 0 0;</p><p></p><p>text-align: center;</p><p></p><p>}</p><p></p><p>.l {</p><p></p><p>background-color: rgba(0,0,0,0.7);</p><p></p><p>border-radius: 0.75em;</p><p></p><p>box-shadow: 0.125em 0.125em 0 0.125em rgba(0,0,0,0.3) inset;</p><p></p><p>color: #fdea7b;</p><p></p><p>display: inline-flex;</p><p></p><p>align-items: center;</p><p></p><p>margin: auto;</p><p></p><p>padding: 0.15em;</p><p></p><p>width: 3em;</p><p></p><p>height: 1.5em;</p><p></p><p>transition: background-color 0.1s 0.3s ease-out, box-shadow 0.1s 0.3s ease-out;</p><p></p><p>-webkit-appearance: none;</p><p></p><p>-moz-appearance: none;</p><p></p><p>appearance: none;</p><p></p><p>}</p><p></p><p>.l:before, .l:after {</p><p></p><p>content: "";</p><p></p><p>display: block;</p><p></p><p>}</p><p></p><p>.l:before {</p><p></p><p>background-color: #d7d7d7;</p><p></p><p>border-radius: 50%;</p><p></p><p>width: 1.2em;</p><p></p><p>height: 1.2em;</p><p></p><p>transition: background-color 0.1s 0.3s ease-out, transform 0.3s ease-out;</p><p></p><p>z-index: 1;</p><p></p><p>}</p><p></p><p>.l:after {</p><p></p><p>background:</p><p></p><p>linear-gradient(transparent 50%, rgba(0,0,0,0.15) 0) 0 50% / 50% 100%,</p><p></p><p>repeating-linear-gradient(90deg,#bbb 0,#bbb,#bbb 20%,#999 20%,#999 40%) 0 50% / 50% 100%,</p><p></p><p>radial-gradient(circle at 50% 50%,#888 25%, transparent 26%);</p><p></p><p>background-repeat: no-repeat;</p><p></p><p>border: 0.25em solid transparent;</p><p></p><p>border-left: 0.4em solid #d8d8d8;</p><p></p><p>border-right: 0 solid transparent;</p><p></p><p>transition: border-left-color 0.1s 0.3s ease-out, transform 0.3s ease-out;</p><p></p><p>transform: translateX(-22.5%);</p><p></p><p>transform-origin: 25% 50%;</p><p></p><p>width: 1.2em;</p><p></p><p>height: 1em;</p><p></p><p>}</p><p></p><p>/* Checked */</p><p></p><p>.l:checked {</p><p></p><p>background-color: rgba(0,0,0,0.45);</p><p></p><p>box-shadow: 0.125em 0.125em 0 0.125em rgba(0,0,0,0.1) inset;</p><p></p><p>}</p><p></p><p>.l:checked:before {</p><p></p><p>background-color: currentColor;</p><p></p><p>transform: translateX(125%)</p><p></p><p>}</p><p></p><p>.l:checked:after {</p><p></p><p>border-left-color: currentColor;</p><p></p><p>transform: translateX(-2.5%) rotateY(180deg);</p><p></p><p>}</p><p></p><p>/* Other States */</p><p></p><p>.l:focus {</p><p></p><p>/* Usually an anti-A11Y practice but set to remove an annoyance just for this demo */</p><p></p><p>outline: 0;</p><p></p><p>}</p><p></p><p>&lt;/style&gt;</p><p></p><p>&lt;/body&gt;</p><p></p><p>&lt;/html&gt;

Answered by akshayapolamarasetty
1

Answer:

< !DOCTYPE html > < html lang="en" > < head > < title > Bulb < /title > < /head > < body > < main > < input class="l" type="checkbox" > < /main > < style > *, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; } :root { /* minFontSize + (maxFontSize - minFontSize) * (100vw - minVWidth)/(maxVWidth - minVWidth) */ font-size: calc(64px + (80 - 64) * (100vw - 320px)/(960 - 320)); } body, input { font-size: 1em; line-height: 1.5; } body { background: #bbb; } input { display: block; margin-bottom: 1.5em; } main { padding: 1.5em 0 0 0; text-align: center; } .l { background-color: rgba(0,0,0,0.7); border-radius: 0.75em; box-shadow: 0.125em 0.125em 0 0.125em rgba(0,0,0,0.3) inset; color: #fdea7b; display: inline-flex; align-items: center; margin: auto; padding: 0.15em; width: 3em; height: 1.5em; transition: background-color 0.1s 0.3s ease-out, box-shadow 0.1s 0.3s ease-out; -webkit-appearance: none; -moz-appearance: none; appearance: none; } .l:before, .l:after { content: ""; display: block; } .l:before { background-color: #d7d7d7; border-radius: 50%; width: 1.2em; height: 1.2em; transition: background-color 0.1s 0.3s ease-out, transform 0.3s ease-out; z-index: 1; } .l:after { background: linear-gradient(transparent 50%, rgba(0,0,0,0.15) 0) 0 50% / 50% 100%, repeating-linear-gradient(90deg,#bbb 0,#bbb,#bbb 20%,#999 20%,#999 40%) 0 50% / 50% 100%, radial-gradient(circle at 50% 50%,#888 25%, transparent 26%); background-repeat: no-repeat; border: 0.25em solid transparent; border-left: 0.4em solid #d8d8d8; border-right: 0 solid transparent; transition: border-left-color 0.1s 0.3s ease-out, transform 0.3s ease-out; transform: translateX(-22.5%); transform-origin: 25% 50%; width: 1.2em; height: 1em; } /* Checked */ .l:checked { background-color: rgba(0,0,0,0.45); box-shadow: 0.125em 0.125em 0 0.125em rgba(0,0,0,0.1) inset; } .l:checked:before { background-color: currentColor; transform: translateX(125%) } .l:checked:after { border-left-color: currentColor; transform: translateX(-2.5%) rotateY(180deg); } /* Other States */ .l:focus { /* Usually an anti-A11Y practice but set to remove an annoyance just for this demo */ outline: 0; } < /style > < /body > < /html >.

Similar questions