<!-- using Noto Emoji : https://fonts.google.com/noto/specimen/Noto+Emoji -->

<h1>Radio Button<br />Zoom Animation</h1>
<main>
  <section id="pattern1">
    <label style="--icon:'🙂';--color:pink"><input type="radio" name="g1" checked>Smile</label><br />
    <label style="--icon:'🤣';--color:lightyellow"><input type="radio" name="g1">Laugh</label><br />
    <label style="--icon:'😴';--color:lightblue"><input type="radio" name="g1">Sleep</label>
  </section>
</main>
<footer>
  <p>Emoji Font : <a href="https://fonts.google.com/noto/specimen/Noto+Emoji" target="_blank">Noto Emoji</a></p>
</footer>
@import url("https://fonts.googleapis.com/css2?family=Noto+Emoji:wght@700&family=Spectral:wght@600&display=block");

:root {
  --borderSize: 0.5vw;
  --baseSize: 6vw;

  --color: pink;
  --icon: "🙂";
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}
body {
  background: pink;
  color: gray;
  position: relative;
  font-family: "Spectral", serif;
  font-size: 4vw;
  width: 100vw;
  height: auto;
  min-height: 100vh;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
h1 {
  font-size: 6vw;
  text-align: center;
  line-height: 1;
}
main {
  margin: 25px 0;
}
section {
  position: relative;
  display: inline-block;
  text-align: left;
  vertical-align: top;
  margin: 0 1vw;
}
input,
input::before,
label {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#pattern1 label {
  position: relative;
  display: inline-block;
  margin-bottom: 2vw;
  font-size: 4.5vw;
  line-height: var(--baseSize);
  cursor: pointer;
  color: gray;
}
#pattern1 input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  width: var(--baseSize);
  height: var(--baseSize);
  font-size: var(--baseSize);
  line-height: var(--baseSize);
  vertical-align: top;
  margin-right: 2vw;
  background-color: #fff;
  color: coral;
  border: var(--borderSize) solid gray;
  border-radius: 50%;
  transition: border-color 0.3s;
}
#pattern1 label::before {
  font-family: "Noto Emoji", sans-serif;
  display: inline-block;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  line-height: 100vh;
  color: #33333325;
  content: var(--icon);
  pointer-events: none;
  z-index: -1;
  background-color: var(--color);
  opacity: 0;
  font-size: 0;
  transition: opacity 0.8s, font-size 0.8s;
}
#pattern1 input::before {
  font-family: "Noto Emoji", sans-serif;
  display: inline-block;
  text-align: center;
  position: absolute;
  top: calc(-1 * var(--borderSize));
  left: calc(-1 * var(--baseSize) * 0.1 - var(--borderSize));
  width: var(--baseSize);
  height: var(--baseSize);
  font-size: var(--baseSize);
  line-height: var(--baseSize);
  content: var(--icon);
  opacity: 0;
  transition: opacity 0.3s;
}
#pattern1 input:checked {
  border-color: transparent;
}
#pattern1 input:checked::before {
  opacity: 1;
}
#pattern1 label:has(input:checked)::before {
  opacity: 1;
  font-size: min(80vh, 80vw);
}
footer {
  position: fixed;
  bottom: 1px;
  right: 5px;
  font-size: 3vw;
  color: dimgray;
}
footer a {
  color: dimgray;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdn.jsdelivr.net/npm/three@0.145.0/build/three.min.js
  2. https://cdn.jsdelivr.net/npm/three@0.145.0/examples/js/controls/OrbitControls.js