<h2>Pretty shadow</h2>
:root {
  --color: #ffffff;
  --background: #2196f3;
}

body{
  font-family: 'Baloo Tamma', cursive;
  background: var(--background);
  color: var(--color);
  transition: 4s;
}

h2{
  text-align: center;
  width: 100%;
  margin: 0px auto;
  font-size: 80px;
  letter-spacing: 5px;
  top: 50%;
  position: absolute;
  margin-top: -40px;
  transition: 4s;
  
  text-shadow: -1px -1px 0px var(--background),
    3px 3px 0px var(--background),
    6px 6px 0px #00000055;
}
const colors = [
  '#2196f3',
  '#f43f5e',
  '#ec4899',
  '#d946ef',
  '#a855f7',
  '#8b5cf6',
  '#6366f1',
  '#3b82f6',
  '#0ea5e9',
  '#06b6d4',
  '#14b8a6',
  '#10b981',
  '#22c55e',
  '#84cc16',
  '#eab308',
  '#f59e0b',
  '#f97316',
  '#ef4444',
]

setInterval(() => {
  const color = colors[Math.floor(Math.random()*colors.length)]
  document.body.style.setProperty('--background', color)
}, 5000)

External CSS

  1. https://fonts.googleapis.com/css?family=Baloo+Tamma

External JavaScript

This Pen doesn't use any external JavaScript resources.