پیش‌نمایش زنده
کد HTML
<div class="doodlepro">
  <input class="doodlepro__checkbox" type="checkbox" id="doodlepro-mood" />

  <div class="doodlepro__stage">
    <label class="doodlepro__toggle" for="doodlepro-mood">
      <span class="doodlepro__toggle-text">SWITCH MOOD</span>
      <span class="doodlepro__toggle-icon"></span>
    </label>

    <div class="doodlepro__poster">
      <div class="doodlepro__grain"></div>
      <div class="doodlepro__grid"></div>

      <span class="doodlepro__tape doodlepro__tape--left"></span>
      <span class="doodlepro__tape doodlepro__tape--right"></span>

      <span class="doodlepro__dot doodlepro__dot--one"></span>
      <span class="doodlepro__dot doodlepro__dot--two"></span>
      <span class="doodlepro__dot doodlepro__dot--three"></span>

      <span class="doodlepro__star doodlepro__star--one"></span>
      <span class="doodlepro__star doodlepro__star--two"></span>

      <span class="doodlepro__scribble doodlepro__scribble--one"></span>
      <span class="doodlepro__scribble doodlepro__scribble--two"></span>

      <span class="doodlepro__arrow"></span>

      <div class="doodlepro__label">DOODLE MANIFESTO</div>

      <div class="doodlepro__title">
        <span>CREATE</span>
        <span>DIFFERENT</span>
      </div>

      <div class="doodlepro__underline"></div>

      <div class="doodlepro__ribbon">
        <div class="doodlepro__ribbon-track">
          <span>PROFESSIONAL CHAOS 404 HANDMADE PIXELS 404</span>
          <span>PROFESSIONAL CHAOS 404 HANDMADE PIXELS 404</span>
          <span>PROFESSIONAL CHAOS 404 HANDMADE PIXELS 404</span>
        </div>
      </div>

      <div class="doodlepro__footer">
        <div class="doodlepro__barcode"></div>

        <div class="doodlepro__caption">
          <strong>VOL. 404</strong>
          <p>Handmade pixels. Professional chaos.</p>
        </div>
      </div>
    </div>
  </div>
</div>
کد CSS
.doodlepro {
  --paper: #fff8e8;
  --ink: #111111;
  --accent: #ff4b1f;
  --blue: #18b7ff;
  --pink: #ff4f9a;
  --muted: #8b867c;
  --shadow: rgba(17, 17, 17, 0.9);

  width: 100%;
  max-width: 600px;
  font-family: Georgia, "Times New Roman", serif;
}

.doodlepro *,
.doodlepro *::before,
.doodlepro *::after {
  box-sizing: border-box;
}

.doodlepro__checkbox {
  display: none;
}

.doodlepro__stage {
  position: relative;
  width: 600px;
  height: 420px;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: radial-gradient(
      circle at 15% 20%,
      rgba(24, 183, 255, 0.16),
      transparent 24%
    ),
    radial-gradient(circle at 85% 76%, rgba(255, 75, 31, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(255, 248, 232, 0.1), rgba(255, 248, 232, 0.04));
  border-radius: 26px;
}

.doodlepro__toggle {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(1deg);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.doodlepro__toggle:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 7px 7px 0 var(--ink);
}

.doodlepro__toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.doodlepro__toggle-icon {
  position: relative;
  width: 22px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.doodlepro__toggle-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.3s ease;
}

.doodlepro__poster {
  position: relative;
  width: 310px;
  height: 360px;
  overflow: hidden;
  background: radial-gradient(
      circle at 88% 16%,
      rgba(24, 183, 255, 0.18) 0 34px,
      transparent 35px
    ),
    radial-gradient(
      circle at 13% 72%,
      rgba(255, 75, 31, 0.18) 0 42px,
      transparent 43px
    ),
    linear-gradient(135deg, var(--paper), #fffdf4);
  border: 3px solid var(--ink);
  border-radius: 12px 16px 11px 18px;
  box-shadow:
    12px 12px 0 var(--shadow),
    inset 0 0 0 1px rgba(17, 17, 17, 0.08);
  transform: rotate(-1.2deg);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.85, 0.2, 1),
    box-shadow 0.5s ease,
    background 0.6s ease,
    border-color 0.6s ease;
}

.doodlepro__poster:hover {
  transform: rotate(1deg) translate(-4px, -4px);
  box-shadow: 17px 17px 0 var(--shadow);
}

.doodlepro__poster::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(17, 17, 17, 0.28);
  border-radius: 9px 14px 8px 12px;
  pointer-events: none;
  z-index: 4;
}

.doodlepro__poster::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 82px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--ink) 0 10px,
    transparent 10px 17px
  );
  opacity: 0.35;
  transform: rotate(-1deg);
}

.doodlepro__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(var(--ink) 0.7px, transparent 0.8px),
    radial-gradient(var(--muted) 0.7px, transparent 0.9px);
  background-size:
    7px 7px,
    11px 11px;
  background-position:
    0 0,
    4px 6px;
  animation: doodleproGrain 8s steps(5) infinite;
}

.doodlepro__grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: linear-gradient(to right, var(--ink) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink) 1px, transparent 1px);
  background-size: 31px 31px;
  pointer-events: none;
}

.doodlepro__tape {
  position: absolute;
  z-index: 10;
  width: 58px;
  height: 25px;
  background: repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.3) 0 5px,
      transparent 5px 10px
    ),
    rgba(24, 183, 255, 0.7);
  border: 2px solid rgba(17, 17, 17, 0.65);
  box-shadow: 2px 2px 0 rgba(17, 17, 17, 0.22);
}

.doodlepro__tape--left {
  top: 14px;
  left: -13px;
  transform: rotate(-18deg);
}

.doodlepro__tape--right {
  top: 15px;
  right: -14px;
  transform: rotate(18deg);
  background: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.3) 0 5px,
      transparent 5px 10px
    ),
    rgba(255, 75, 31, 0.65);
}

.doodlepro__label {
  position: absolute;
  top: 38px;
  left: 28px;
  z-index: 8;
  display: inline-flex;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px 999px 999px 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 var(--accent);
  transition:
    background 0.5s ease,
    color 0.5s ease,
    box-shadow 0.5s ease;
}

.doodlepro__title {
  position: absolute;
  top: 93px;
  left: 25px;
  right: 18px;
  z-index: 8;
  color: var(--ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 58px;
  line-height: 0.82;
  letter-spacing: -2px;
  text-transform: uppercase;
  transition:
    color 0.5s ease,
    text-shadow 0.5s ease,
    transform 0.5s ease;
}

.doodlepro__title span {
  display: block;
  position: relative;
}

.doodlepro__title span:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: none;
}

.doodlepro__title span:nth-child(2)::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 7px;
  width: 198px;
  height: 13px;
  z-index: -1;
  background: var(--accent);
  border-radius: 999px 18px 999px 14px;
  transform: rotate(-2deg);
  opacity: 0.8;
  transition: background 0.5s ease;
}

.doodlepro__underline {
  position: absolute;
  left: 33px;
  top: 209px;
  z-index: 8;
  width: 122px;
  height: 13px;
  border-bottom: 4px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-3deg);
}

.doodlepro__underline::before,
.doodlepro__underline::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 52px;
  height: 13px;
  border-bottom: 3px solid var(--blue);
  border-radius: 50%;
}

.doodlepro__underline::before {
  left: 18px;
  transform: rotate(5deg);
}

.doodlepro__underline::after {
  left: 68px;
  transform: rotate(-6deg);
}

.doodlepro__ribbon {
  position: absolute;
  left: -48px;
  top: 218px;
  z-index: 12;
  width: 410px;
  overflow: hidden;
  padding: 9px 0;
  background: var(--accent);
  color: var(--paper);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  transform: rotate(-10deg);
  box-shadow: 0 7px 0 rgba(17, 17, 17, 0.28);
  transition:
    background 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease;
}

.doodlepro__ribbon-track {
  display: flex;
  width: max-content;
  animation: doodleproMarquee 9s linear infinite;
}

.doodlepro__ribbon-track span {
  padding-right: 18px;
}

.doodlepro__footer {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 3px solid var(--ink);
  transition: border-color 0.5s ease;
}

.doodlepro__barcode {
  width: 72px;
  height: 38px;
  background: repeating-linear-gradient(
    to right,
    var(--ink) 0 3px,
    transparent 3px 6px,
    var(--ink) 6px 8px,
    transparent 8px 12px,
    var(--ink) 12px 17px,
    transparent 17px 20px
  );
  border-bottom: 5px solid var(--ink);
  transition:
    background 0.5s ease,
    border-color 0.5s ease;
}

.doodlepro__caption {
  max-width: 145px;
  text-align: right;
  color: var(--ink);
  transition: color 0.5s ease;
}

.doodlepro__caption strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 1px;
}

.doodlepro__caption p {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  color: currentColor;
  opacity: 0.82;
}

.doodlepro__dot {
  position: absolute;
  z-index: 7;
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--ink);
  animation: doodleproBlink 2.2s ease-in-out infinite;
}

.doodlepro__dot--one {
  top: 90px;
  right: 42px;
}

.doodlepro__dot--two {
  top: 285px;
  left: 32px;
  width: 8px;
  height: 8px;
  background: var(--blue);
  animation-delay: 0.45s;
}

.doodlepro__dot--three {
  right: 28px;
  bottom: 88px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  animation-delay: 0.8s;
}

.doodlepro__star {
  position: absolute;
  z-index: 7;
  width: 30px;
  height: 30px;
  animation: doodleproFloat 4s ease-in-out infinite;
}

.doodlepro__star::before,
.doodlepro__star::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 0;
  width: 4px;
  height: 30px;
  background: var(--ink);
  border-radius: 50%;
}

.doodlepro__star::after {
  transform: rotate(90deg);
}

.doodlepro__star--one {
  top: 64px;
  right: 74px;
  transform: rotate(12deg);
}

.doodlepro__star--two {
  left: 38px;
  bottom: 113px;
  width: 22px;
  height: 22px;
  transform: rotate(-18deg);
  animation-delay: 0.7s;
}

.doodlepro__star--two::before {
  left: 9px;
  height: 22px;
}

.doodlepro__star--two::after {
  left: 9px;
  height: 22px;
}

.doodlepro__scribble {
  position: absolute;
  z-index: 6;
  border: 3px solid var(--ink);
  border-radius: 49% 51% 45% 55%;
  opacity: 0.9;
  animation: doodleproWiggle 5s ease-in-out infinite;
}

.doodlepro__scribble--one {
  width: 52px;
  height: 34px;
  right: 22px;
  top: 128px;
  border-color: var(--blue);
  transform: rotate(-18deg);
}

.doodlepro__scribble--one::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid var(--blue);
  border-radius: 55% 45% 50% 50%;
}

.doodlepro__scribble--two {
  width: 46px;
  height: 28px;
  left: 20px;
  top: 232px;
  border-color: var(--accent);
  transform: rotate(16deg);
  animation-delay: 1s;
}

.doodlepro__arrow {
  position: absolute;
  right: 42px;
  bottom: 132px;
  z-index: 8;
  width: 42px;
  height: 18px;
  border-bottom: 3px solid var(--ink);
  transform: rotate(-14deg);
}

.doodlepro__arrow::before,
.doodlepro__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -3px;
  width: 13px;
  height: 3px;
  background: var(--ink);
  border-radius: 999px;
  transform-origin: right center;
}

.doodlepro__arrow::before {
  transform: rotate(35deg);
}

.doodlepro__arrow::after {
  transform: rotate(-35deg);
}

.doodlepro__checkbox:checked ~ .doodlepro__stage {
  --paper: #101010;
  --ink: #f8ffe8;
  --accent: #ff4f9a;
  --blue: #ccff00;
  --pink: #18b7ff;
  --muted: #777777;
  --shadow: rgba(255, 79, 154, 0.95);

  background: radial-gradient(
      circle at 15% 20%,
      rgba(204, 255, 0, 0.14),
      transparent 24%
    ),
    radial-gradient(
      circle at 86% 74%,
      rgba(255, 79, 154, 0.18),
      transparent 26%
    ),
    linear-gradient(135deg, rgba(16, 16, 16, 0.14), rgba(16, 16, 16, 0.05));
}

.doodlepro__checkbox:checked ~ .doodlepro__stage .doodlepro__toggle {
  background: #111111;
  color: #ccff00;
  border-color: #ccff00;
  box-shadow: 4px 4px 0 #ff4f9a;
}

.doodlepro__checkbox:checked
  ~ .doodlepro__stage
  .doodlepro__toggle-icon::before {
  transform: translateX(10px);
}

.doodlepro__checkbox:checked ~ .doodlepro__stage .doodlepro__poster {
  background: radial-gradient(
      circle at 84% 18%,
      rgba(204, 255, 0, 0.16) 0 35px,
      transparent 36px
    ),
    radial-gradient(
      circle at 16% 72%,
      rgba(255, 79, 154, 0.22) 0 45px,
      transparent 46px
    ),
    linear-gradient(135deg, #101010, #191919);
}

.doodlepro__checkbox:checked ~ .doodlepro__stage .doodlepro__label {
  background: #ccff00;
  color: #101010;
  box-shadow: 3px 3px 0 #ff4f9a;
}

.doodlepro__checkbox:checked ~ .doodlepro__stage .doodlepro__title {
  text-shadow:
    4px 4px 0 #ff4f9a,
    -3px -2px 0 rgba(24, 183, 255, 0.9);
  transform: rotate(-1deg);
  animation: doodleproSketchGlitch 2.8s steps(2) infinite;
}

.doodlepro__checkbox:checked
  ~ .doodlepro__stage
  .doodlepro__title
  span:nth-child(2) {
  -webkit-text-stroke-color: #ccff00;
}

.doodlepro__checkbox:checked ~ .doodlepro__stage .doodlepro__dot,
.doodlepro__checkbox:checked ~ .doodlepro__stage .doodlepro__star,
.doodlepro__checkbox:checked ~ .doodlepro__stage .doodlepro__scribble,
.doodlepro__checkbox:checked ~ .doodlepro__stage .doodlepro__arrow {
  animation-duration: 2.5s;
}

@keyframes doodleproMarquee {
  to {
    transform: translateX(-33.33%);
  }
}

@keyframes doodleproGrain {
  0% {
    background-position:
      0 0,
      4px 6px;
  }

  100% {
    background-position:
      14px 7px,
      1px 18px;
  }
}

@keyframes doodleproBlink {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(0.72);
    opacity: 0.45;
  }
}

@keyframes doodleproFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes doodleproWiggle {
  0%,
  100% {
    border-radius: 49% 51% 45% 55%;
  }

  50% {
    border-radius: 55% 45% 52% 48%;
  }
}

@keyframes doodleproSketchGlitch {
  0%,
  88%,
  100% {
    translate: 0 0;
  }

  89% {
    translate: 2px -1px;
  }

  90% {
    translate: -2px 1px;
  }

  91% {
    translate: 0 0;
  }
}

@media (max-width: 640px) {
  .doodlepro__stage {
    width: 100%;
    height: 420px;
    padding: 18px;
  }

  .doodlepro__poster {
    width: 286px;
    height: 340px;
  }

  .doodlepro__title {
    font-size: 51px;
  }

  .doodlepro__ribbon {
    top: 210px;
  }

  .doodlepro__toggle {
    top: 14px;
    right: 14px;
    transform: scale(0.9) rotate(1deg);
  }
}
نوع: card
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06