Double Border Animated Box in Elementor

Want to give your Elementor boxes or buttons a modern, glowing double border animation? In this tutorial, you’ll learn how to create a Double Border Animated Box using simple CSS inside Elementor.
No plugins, no coding experience required — just follow along!


🎬 What You’ll Learn

  • How to create a stunning double border animation in Elementor
  • How to apply hover effects using CSS pseudo-elements
  • How to add a soft glow animation for a modern design look

🧱 Step 1: Create a Box in Elementor

  1. Open your Elementor Editor
  2. Add a Section → Inner Section → Column → Box (or Button)
  3. Customize your text and background color
  4. Go to the Advanced Tab → Custom CSS (available in Elementor Pro)

💻 Step 2: Add the CSS Code

Copy and paste the following CSS code into the Custom CSS area:

selector {
  position: relative;
  background: #000;
  color: #fff;
  padding: 40px;
  text-align: center;
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
}

selector::before,
selector::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #00ffff;
  border-radius: 20px;
  box-sizing: border-box;
  transition: 0.6s;
}

selector::after {
  border-color: #ff00ff;
  transform: scale(0.85);
  transition-delay: 0.1s;
}

selector:hover::before {
  transform: rotate(5deg) scale(1.05);
  border-color: #00ffff;
}

selector:hover::after {
  transform: rotate(-5deg) scale(1);
  border-color: #ff00ff;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Our Professional Services & Hosting Packages

At Ezonsoft, we don’t just share knowledge — we empower your digital growth.If you’re inspired by this blog and ready to take your business to the next level, explore our professional web services and hosting packages below 👇

Website Design & Development

Digital Marketing Services

Graphic Design & Branding