Css анимация ошибки

Error pages 404 is one of the most neglected web design tasks: its layout is always relegated to the last place and with a very low priority, resulting in an uncreative and standard design. However, we have to view 404 errors as an opportunity to help and guide the users towards the content or section that they are looking for, offering a good user experience.

A search form and a summary of the sections of our website is always a good starting point as content on a 404 error page. But the first thing the user will find is precisely that, a warning that something has failed or that the content you are looking for is no longer there. Why not show that in a creative and funny way?

That is what we have proposed in this article: to design several examples of error page 404 with CSS animations. We had already seen some examples in Silo, but after the demos of the hamburger menu and the showcase of the newsletter form we wanted to show you that, so we hope you like them!

Error 404 with CSS animations in text

Applying some CSS animations to imitate text rollover and drop

For this example we have used two animations, one for each number 4. In the first, we wanted to imitate that the number falls and remains hanging from an invisible axis. The final 4 turns to the right, in two phases. This is the final result:

The necessary HTML is very simple, a container to be able to center the elements and each number within a span element to give it style and assign the animations. In this case we needed a father span element and a son to correctly assign the transformations. You can also choose to include the numbers in an h1 element to make it more semantic:

<section class="error-container">
	<span><span>4</span></span>
	<span>0</span>
	<span><span>4</span></span>
</section>

Regarding CSS, the styles of each number are defined:

.error-container {
	text-align: center;
	font-size: 180px;
	font-family: 'Catamaran', sans-serif;
	font-weight: 800;
	margin: 20px 15px;
}
.error-container > span {
	display: inline-block;
	line-height: 0.7;
	position: relative;
	color: #FFB485;
}
.error-container > span > span {
	display: inline-block;
	position: relative;
}
.error-container > span:nth-of-type(1) {
	perspective: 1000px;
	perspective-origin: 500% 50%;
	color: #F0E395;
}
.error-container > span:nth-of-type(1) > span {
	transform-origin: 50% 100% 0px;
	transform: rotateX(0);
	animation: easyoutelastic 8s infinite;
}
.error-container > span:nth-of-type(3) {
	perspective: none;
	perspective-origin: 50% 50%;
	color: #D15C95;
}
.error-container > span:nth-of-type(3) > span {
	transform-origin: 100% 100% 0px;
	transform: rotate(0deg);
	animation: rotatedrop 8s infinite;
}

There are two animations through @keyframes for the first 4 and for the last one:

@keyframes easyoutelastic {
	0% {
		transform: rotateX(0);
	}
	9% {
		transform: rotateX(210deg);
	}
	13% {
		transform: rotateX(150deg);
	}
	16% {
		transform: rotateX(200deg);
	}
	18% {
		transform: rotateX(170deg);
	}
	20% {
		transform: rotateX(180deg);
	}
	60% {
		transform: rotateX(180deg);
	}
	80% {
		transform: rotateX(0);
	}
	100% {
		transform: rotateX(0);
	}
}

@keyframes rotatedrop {
	0% {
		transform: rotate(0);
	}
	10% {
		transform: rotate(30deg);
	}
	15% {
		transform: rotate(90deg);
	}
	70% {
		transform: rotate(90deg);
	}
	80% {
		transform: rotate(0);
	}
	100% {
		transform: rotateX(0);
	}
}

If you prefer to use JS to animate texts you can choose these other examples, some of which have served as inspiration for this specific demo.

Animating a 404 error graphic design

page-404-web-design

Transforming a 404 error page graphic design into a web design with CSS

We love the illustrations and designs of Yoga Perdana, and making one of its works come alive has been a challenge thanks to CSS. The most complex of this demo are undoubtedly the shadows, because in flat design the long shadows are complex to make using only the CSS box-shadow property.

Since the original design does not have any animation, we decided to give it life by playing with the internal shadows of element 0. The HTML is very similar to the previous one, the only difference is that the numbers are not going to be seen, they are graphics, so you have to include them and move them so that they are not readable by the user but for the devices:

<section class="error-container">
	<span class="four"><span class="screen-reader-text">4</span></span>
	<span class="zero"><span class="screen-reader-text">0</span></span>
	<span class="four"><span class="screen-reader-text">4</span></span>
</section>

As for the CSS, there are many multiple CSS backgrounds, as we saw in the example of the responsive banner, with shadows simulated over the backgrounds and real CSS gradients. All very fun!

.error-container > span.four {
	width: 136px;
	height: 43px;
	border-radius: 999px;
	background:
		linear-gradient(140deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.07) 43%, transparent 44%, transparent 100%),
		linear-gradient(105deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.06) 41%, rgba(0, 0, 0, 0.07) 76%, transparent 77%, transparent 100%),
		linear-gradient(to right, #d89ca4, #e27b7e);
}
.error-container > span.four:before,
.error-container > span.four:after {
	content: '';
	display: block;
	position: absolute;
	border-radius: 999px;
}
.error-container > span.four:before {
	width: 43px;
	height: 156px;
	left: 60px;
	bottom: -43px;
	background:
		linear-gradient(128deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.07) 40%, transparent 41%, transparent 100%),
		linear-gradient(116deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.07) 50%, transparent 51%, transparent 100%),
		linear-gradient(to top, #99749D, #B895AB, #CC9AA6, #D7969E, #E0787F);
}
.error-container > span.four:after {
	width: 137px;
	height: 43px;
	transform: rotate(-49.5deg);
	left: -18px;
	bottom: 36px;
	background: linear-gradient(to right, #99749D, #B895AB, #CC9AA6, #D7969E, #E0787F);
}

.error-container > span.zero {
	vertical-align: text-top;
	width: 156px;
	height: 156px;
	border-radius: 999px;
	background: linear-gradient(-45deg, transparent 0%, rgba(0, 0, 0, 0.06) 50%,  transparent 51%, transparent 100%),
		linear-gradient(to top right, #99749D, #99749D, #B895AB, #CC9AA6, #D7969E, #ED8687, #ED8687);
	overflow: hidden;
	animation: bgshadow 5s infinite;
}
.error-container > span.zero:before {
	content: '';
	display: block;
	position: absolute;
	transform: rotate(45deg);
	width: 90px;
	height: 90px;
	background-color: transparent;
	left: 0px;
	bottom: 0px;
	background:
		linear-gradient(95deg, transparent 0%, transparent 8%, rgba(0, 0, 0, 0.07) 9%, transparent 50%, transparent 100%),
		linear-gradient(85deg, transparent 0%, transparent 19%, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.07) 91%, transparent 92%, transparent 100%);
}
.error-container > span.zero:after {
	content: '';
	display: block;
	position: absolute;
	border-radius: 999px;
	width: 70px;
	height: 70px;
	left: 43px;
	bottom: 43px;
	background: #FDFAF5;
	box-shadow: -2px 2px 2px 0px rgba(0, 0, 0, 0.1);
}

Finally, for the animation, an effect playing with the shadows where it seems that the bottom disc of the number 0 moves behind the page … but no, they are only shadows and your eye that plays a trick on you! 😉

@keyframes bgshadow {
	0% {
		box-shadow: inset -160px 160px 0px 5px rgba(0, 0, 0, 0.4);
	}
	45% {
		box-shadow: inset 0px 0px 0px 0px rgba(0, 0, 0, 0.1);
	}
	55% {
		box-shadow: inset 0px 0px 0px 0px rgba(0, 0, 0, 0.1);
	}
	100% {
		box-shadow: inset 160px -160px 0px 5px rgba(0, 0, 0, 0.4);
	}
}

Error 404 with colour palette

fail-404-web-creative

Example of how to use the colour palette of your web on the error page 404

If you have a well-defined colour palette on your website it would be a good idea to use it on your error page 404 to design something creative. In this case we suggest using the 0 as a colour wheel that modifies the colour of the numbers 4 in a circular animation:

HTML continues to be as minimal as possible:

<section class="error-container">
	<span>4</span>
	<span><span class="screen-reader-text">0</span></span>
	<span>4</span>
</section>

In CSS we need to define the pseudoelements ::after and ::before</code 0 to create this shadow roulette with the box-shadow property, as well as its animation:

.error-container > span:nth-of-type(1) {
	color: #D1F2A5;
	animation: colordancing 4s infinite;
}
.error-container > span:nth-of-type(3) {
	color: #F56991;
	animation: colordancing2 4s infinite;
}
.error-container > span:nth-of-type(2) {
	width: 120px;
	height: 120px;
	border-radius: 999px;
}
.error-container > span:nth-of-type(2):before,
.error-container > span:nth-of-type(2):after {
	border-radius: 0%;
	content:"";
	position: absolute;
	top: 0; left: 0;
	width: inherit; height: inherit;
	border-radius: 999px;
	box-shadow: inset 30px 0 0 rgba(209, 242, 165, 0.4),
		inset 0 30px 0 rgba(239, 250, 180, 0.4),
		inset -30px 0 0 rgba(255, 196, 140, 0.4),	
		inset 0 -30px 0 rgba(245, 105, 145, 0.4);
	animation: shadowsdancing 4s infinite;
}
.error-container > span:nth-of-type(2):before {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	transform: rotate(45deg);
}

And finally a simple animation to change the text colour of the 4:

@keyframes colordancing {
	0% {
		color: #D1F2A5;
	}
	25% {
		color: #F56991;
	}
	50% {
		color: #FFC48C;
	}
	75% {
		color: #EFFAB4;
	}
	100% {
		color: #D1F2A5;
	}
}

The importance of unique pages in web design

When we design a web we must follow a structure, some contents, a style guide … in short, a program that often makes it very difficult to introduce new elements or experiment with new properties and values.

Looking for a challenging task to test new CSS rules usually is out of designer daily basis or at least out of projects that take most of work time.

However, in unique pages, like error 404, designers can create and users are able to perceive another feeling in the interaction with the application or web. In a project where the global style is much defined, we can develop something different and use the new trends with minimal risk to make mistakes.

Therefore, through the use of CSS animations as we have seen in the example or using some singular elements (an illustration, a svg …) we can make these pages unique. Let’s turn that singularity into something special. Our users will appreciate it.

Cover image for How to add shake animation on input:invalid

In this short article we’ll create a simple HTML with an input tag in a form tag and animate the input when user input is not valid.
This might seem a bit difficult and you may think you need Javascript to complete this task,but with only HTML and CSS(keyframes) we’ll get this done.

Let’s write some code

Adding our HTML

<!DOCTYPE html>
<head>
    <meta charset="UTF-8" />
</head>
  <body>
     <form action="">
        <input type="text" minlength="5" />
      </form>
  </body>

</html>

Enter fullscreen mode

Exit fullscreen mode

Using the :invalid pseudo selector

In our css we style the input with the :invalid pseudo selector

<style>
input:invalid{
animation:shake .3s
}
</style>

Enter fullscreen mode

Exit fullscreen mode

Adding shake animation with keyframes

Animations in CSS are mostly done with keyframes and so will our shake animation

<style>
.....
@keyframes shake{
25%{transform:translate(4px)}
50%{transform:translate(-4px)}
75%{transform:translate(4px)
}}
</style>

Enter fullscreen mode

Exit fullscreen mode

Final Results

We set the minimum length of our input to 5, this means the input is invalid if the user enters less than 5 characters.
And the input box shakes when the user input is less than 5 , thus the form is invalid

While going through a website, you may have seen broken links, search page with no results, 404 page not found errors etc. What would be the idea of an error page which amazes users with its attractive and responsive design?. Here are 20 super cool and creative 404 error animations made using CSS, SVG and Javascript that i found on codepen.

Kittens

404 Kittens

Glitched out

404 - Glitched out

404

No signal

no signal

Compose 404

compose

Colorful Glitchy 404

colorful

Page not found

page not found

No Vacancy 404

no vacancy 404

Back to the Future

back to the future

Spotlight Search

spotlight

404 SVG

svg

Sovog

Sovog

Animated Character

404 Animated Character

Vitamin GSAP

vitamin GSAP

ERROR Template

404 template

Low poly effect

low poly effect

Dynamic Bezel Lines

Dynamic Bezel Lines

Chill the lion

lion

SVG Animation

SVG Animation

CSS Glitched Text

CSS Glitched Text

Animated Error and Success Icons with CSS


This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters

Show hidden characters

.pinkBg {
background-color: #ed184f!important;
background-image: linear-gradient(90deg, #fd5581, #fd8b55);
}
.intro-banner-vdo-play-btn{
height:200px;
width:200px;
position:absolute;
top:50%;
left:50%;
text-align:center;
margin:-30px 0 0 -30px;
border-radius:50%;
z-index:1
}
.intro-banner-vdo-play-btn i{
line-height:56px;
font-size:30px
}
.intro-banner-vdo-play-btn .ripple{
position:absolute;
width:300px;
height:300px;
z-index:-1;
left:50%;
top:50%;
opacity:0;
margin:-150px 0 0 -150px;
border-radius:50%;
-webkit-animation:ripple 1.8s infinite;
animation:ripple 1.8s infinite
}
@-webkit-keyframes ripple{
0%{
opacity:1;
-webkit-transform:scale(0);
transform:scale(0)
}
100%{
opacity:0;
-webkit-transform:scale(1);
transform:scale(1)
}
}
@keyframes ripple{
0%{
opacity:1;
-webkit-transform:scale(0);
transform:scale(0)
}
100%{
opacity:0;
-webkit-transform:scale(1);
transform:scale(1)
}
}
.intro-banner-vdo-play-btn .ripple:nth-child(2){
animation-delay:.3s;
-webkit-animation-delay:.3s
}
.intro-banner-vdo-play-btn .ripple:nth-child(3){
animation-delay:.6s;
-webkit-animation-delay:.6s
}


This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters

Show hidden characters

<!doctype html>
<html>
<head>
<meta charsetutf-8«>
<title>Animated SVG Icons</title>
<link relstylesheet» typetext/css» hrefanimated-icons.css«/>
<link href//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css» relstylesheet» idbootstrap-css«>
<script src//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js«></script>
<script src//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js«></script>
</head>
<body>
<div classcontainer«>
<div classrow«>
<a href#» classintro-banner-vdo-play-btn pinkBg» target_blank«>
<i classglyphicon glyphicon-play whiteText» aria-hiddentrue«></i>
<span classripple pinkBg«></span>
<span classripple pinkBg«></span>
<span classripple pinkBg«></span>
</a>
</div>
</div>
</body>
</html>

I have handpicked some of the best and coolest CSS text animations for you to try on your website.

Most of the examples here only use CSS or very minimum JS, so you can use these very easily on your website or project.

  • CSS Glow Text Effects
  • 55 Animated jQuery Buttons
  • 15 Amazing CSS Animated Background for you to try
  • 57 Beautiful CSS Cards examples to improve your UI
  • 19 Cool CSS Loading Animation to inspire you
  • 17 Fancy CSS Search Boxes
  • 21 Modern CSS menu examples
  • 19 Stylish CSS forms
  • 23 Fantastic CSS Hover Effects
  • 19 CSS Border Animations you can implement
  • 15 Stylised CSS Tables
  • 13 Pure CSS Dropdown Menus
  • 15 Creative CSS Filter Examples
  • 35 Unique CSS Text Effects
  • 15 CSS Sliders you can use
  • 21 New Bootstrap Login Forms for you
  • 19 Bootstrap Profiles you can use for yourself
  • 13 Material Design Login Forms
  • 35 Cool CSS Select Boxes
  • 15 CSS Range Sliders you can use today
  • 35 Creative use of CSS clip-path examples
  • 29 Unique CSS Toggle Switches
  • 41 Beautiful CSS Animation Examples

Simple CSS text animation

Dev: Nooray Yemon

CSS3 Text Animation Effect

Dev: Nick Mkrtchyan

Text Animation: Montserrat

Dev: Claire Larsen

Pure CSS Text Animation

Dev: Robin Treur

Text Animation with background

Dev: Nooray Yemon

Shining Text Animation Effects

Dev: FrankieDoodie

Netflix style text animation with CSS

Dev: Nooray Yemon

SVG Text Animation Using Stroke Offset Method

Dev: Mack Ayache

Pure CSS Text Animation

Dev: Arlina Code

Happy New Year! — CSS Only

Dev: SnailCrusher

Text animation

Dev: Yoann

Intro Text Animation

Dev: Joacim Nilsson

CSS text animation

Dev: Aniket Singh

3D CSS Text Animation

Dev: Tomas Piksrys

(cool) text effect

Dev: Hakkam Abdullah

Flickering Light Text Effect

Dev: Mandy Michael

Pure CSS text-animation

Dev: vainsan

Pure CSS Text Animation Loading

Dev: Bousahla Mounir

Pure CSS Text Reveal

Dev: Mattia Astorino

SVG Text Animation in CSS

Dev: Maciej Leszczyński

SVG/CSS Text Animation

Dev: Cédric

Flip Text

Dev: Heather B.

Jalousie text animation

Dev: Jonas Sandstedt

Typewriter Text Animation

Dev: Aakhya Singh

2 in 2021 / Welcome / CSS Stylus Pug

Dev: Toshiya Marukubo

Be happy!

Dev: Elena Nazarova

Animated Text Gradient

Dev: chrishodges

Handwriting Animation (SVG + CSS)

Dev: Marina

Text-Shadow Animate

Dev: Wyatt Nolen

Animated text fill

Dev: Daniel Riemer

Wave text effect (with SVG/blend mode)

Dev: Lucas Bebber

CSS TEXT REVEALING ANIMATION

Dev: Nooray Yemon

Smoky Text

Dev: Bennett Feely

Liquid Type

Dev: Callum Martin

Glowing text, music inspired

Dev: amber

In/out of focus text effect

Dev: Jonny Scholes

Breathe (Coded on iOS)

Dev: Elisabeth Diang

CSS only Frozen text

Dev: Mandy Michael

Typed.scss: CSS-powered animated text

Dev: Brandon McConnell

Apple commercial animation

Dev: Alvaro Montoro

CSS : Background Clip

Dev: Amir Rahimi

Pure CSS | FadeIn Text with bars | KeyFrames & Scss

Dev: Kaio Almeida

Luminance

Dev: Franklin Castellanos

Word Swipe Animation

Dev: Eric Porter

DECONSTRUCTED

Dev: Bence Szabo

Animated text fill with svg text practice

Dev: Cesar C.

CSS-only shimmering neon text

Dev: Giana

Drop : Gooey Effect

Dev: Tushar Choudhari

Loader

Dev: Eric Huguenin

mix-blend-mode

Dev: Cassandra Rossall

CSS Text-Shadow Animation

Dev: Faria Begum Riya

Glowing Text

Dev: Pratham

Slide to unlock shine

Dev: Andreas Storm

Text Animation

Dev: Sean Dempsey

Animated Fire Text-Shadow

Dev: Antti Nyman

Super Shadows!

Dev: Oliver Pope

Text Animation with CSS – thank you screen!

Dev: Nooray Yemon

404 Animated Page

Dev: Vincent Van Goggles

[webkit] Animated “text-shadow” pattern

Dev: carpe numidium

Animated Text-Shadow

Dev: Erin E. Sullivan

Pure CSS Glitch Experiment (Twitch Intro WIP)

Dev: Elisabeth Diang

Clean CSS Glitch

Dev: Piotr Galor

3D CSS Typography

Dev: Noah Blon

Easy Animation

Dev: Mark Mead

Pure CSS Typing Animation

Dev: Stephanie Eckles

Spacious

Dev: Oliva Alonso

Masking Path Animation

Dev: Envato Tuts+

Понравилась статья? Поделить с друзьями:
  • Civilization 5 ошибка при подключении к локальной сети
  • Ccleaner при установке ошибка
  • Css v34 ошибка engine dll
  • Civilization 3 код ошибки 13
  • Cassida c550 ошибки