Css background fill animation

Содержание
  1. Fill Background Animation using CSS
  2. 35+ CSS Animated Backgrounds for Any Website Style
  3. Pure CSS background animation
  4. Author
  5. Made With
  6. Demo
  7. Links
  8. -webkit-background-clip:text CSS effect
  9. Author
  10. Made With
  11. Demo
  12. Links
  13. Animate Background
  14. Author
  15. Made With
  16. Demo
  17. Links
  18. Rotation & background experiment
  19. Author
  20. Made With
  21. Demo
  22. Links
  23. Parallax Star background in CSS
  24. Author
  25. Made With
  26. Demo
  27. Links
  28. Cloudy Spiral CSS animation
  29. Author
  30. Made With
  31. Demo
  32. Links
  33. pure CSS twinkling stars background
  34. Author
  35. Made With
  36. Demo
  37. Links
  38. Background Effect
  39. Author
  40. Made With
  41. Demo
  42. Links
  43. Pure CSS Particle Animation
  44. Author
  45. Made With
  46. Demo
  47. Links
  48. CSS Fireflies
  49. Author
  50. Made With
  51. Demo
  52. Links
  53. infinite SVG Triangle Fusion
  54. Author
  55. Made With
  56. Demo
  57. Links
  58. Animated Ripples background
  59. Author
  60. Made With
  61. Demo
  62. Links
  63. Cool Mountain Background with animations – slightly responsive
  64. Author
  65. Made With
  66. Demo
  67. Links
  68. Chameleon background
  69. Author
  70. Made With
  71. Demo
  72. Links
  73. Animation Background-Clip Text Effect – Using Only HTML & CSS
  74. Author
  75. Made With
  76. Demo
  77. Links
  78. CSS3 Animation: Background Color Cycle
  79. Author
  80. Made With
  81. Demo
  82. Links
  83. Animation background #1
  84. Author
  85. Made With
  86. Demo
  87. Links
  88. Animated Background Gradient
  89. Author
  90. Made With
  91. Demo
  92. Links
  93. CSS3 Animation – Background colour
  94. Author
  95. Made With
  96. Demo
  97. Links
  98. CSS Animated Background Landing Page
  99. Author
  100. Made With
  101. Demo
  102. Links
  103. Hearts animation background
  104. Author
  105. Made With
  106. Demo
  107. Links
  108. CSS Animation – Background-image-scroll
  109. Author
  110. Made With
  111. Demo
  112. Links
  113. SVG Animation Background
  114. Author
  115. Made With
  116. Demo
  117. Links
  118. Foundation 6 Animated Background
  119. Author
  120. Made With
  121. Demo
  122. Links
  123. Animated CSS mask-image gradient
  124. Author
  125. Made With
  126. Demo
  127. Links
  128. Parallax Background Image
  129. Author
  130. Made With
  131. Demo
  132. Links
  133. Canva moving background effect
  134. Author
  135. Made With
  136. Demo
  137. Links
  138. Parallax Background Effect
  139. Author
  140. Made With
  141. Demo
  142. Links
  143. CSS background effect
  144. Author
  145. Made With
  146. Demo
  147. Links
  148. Animated CSS mask-image gradient
  149. Author
  150. Made With
  151. Demo
  152. Links
  153. Everything “random()” 😛
  154. Author
  155. Made With
  156. Demo
  157. Links
  158. Simple Parallax Background Effect ( Only Css )
  159. Author
  160. Made With
  161. Demo
  162. Links
  163. background effect
  164. Author
  165. Made With
  166. Demo
  167. Links
  168. Sliding Diagonals Background Effect
  169. Author
  170. Made With
  171. Demo
  172. Links
  173. Text Clip background effect
  174. Author
  175. Made With
  176. Demo
  177. Links
  178. Psychedelic animated background
  179. Author
  180. Made With
  181. Demo
  182. Links
  183. Similar Posts
  184. 20+ Best CSS Checkbox – GSCODE
  185. CSS Popup/Modal Design: 35+ Examples for Inspiration
  186. Get Inspired with 30+ CSS Motion Path Examples
  187. CSS Image Hover Effects: A Collection of 40+ Creative Examples
  188. 30+ CSS Typewriter effect | CSS Typing Animation
  189. 30+ Best CSS Text Stroke Effects For Your Inspiration
  190. Анимированный фон веб-страницы на чистых HTML и CSS
  191. Диагональный градиент
  192. Скольжение диагоналей
  193. Анимированный фон
  194. Бесконечный паттерн
  195. Прекрасный анимированный бэкграунд
  196. Анимированный «лесной» фон
  197. Плавающие квадраты
  198. Снова диагональные линии
  199. Плывущие облака
Читайте также:  Jupiter run python file

Fill Background Animation using CSS

From the code above, I set background with linear-gradient(to right, #000 50%, #fff 50%) , because I want the background move from left to right with black-white color. And I set background-size to 200% width and 100% height. When the width is bigger than 100% it will not fill the button with black, instead will be filled with white background. Then, I set the animation stop at right position of the button so I put background-position: bottom right; . After that, because I want the animation start when hover I put background-position: bottom left; on hover state. Now let’s see the result:
It works 🙂
Let’s add and modify linear-gradient , background-size and background-position to make other buttons have similar animation with different directions.

/* RIGHT TO LEFT */ .button__right-left  border: 2px solid black; background: linear-gradient(to left, #000 50%, #fff 50%); background-size: 200% 100%; background-position: bottom left; transition: all .7s ease-out; > .button__right-left:hover  border: 2px solid limegreen; background-position: bottom right; color: #fff; > /* TOP TO BOTTOM */ .button__top-bottom  border: 2px solid black; background: linear-gradient(to bottom, #000 50%, #fff 50%); background-size: 100% 200%; background-position: bottom left; transition: all .5s ease-out; > .button__top-bottom:hover  border: 2px solid limegreen; background-position: top left; color: #fff; > /* BOTTOM TO TOP */ .button__bottom-top  border: 2px solid black; background: linear-gradient(to top, #000 50%, #fff 50%); background-size: 100% 200%; background-position: top left; transition: all .5s ease-out; > .button__bottom-top:hover  border: 2px solid limegreen; background-position: bottom left; color: #fff; > 

Источник

35+ CSS Animated Backgrounds for Any Website Style

See the Pen Pure Css Animated Background by Mohammad Abdul Mohaiman (@mohaiman) on CodePen.

Pure CSS background animation

Author

Made With

Demo

-webkit-background-clip:text CSS effect

Author

Made With

Demo

Animate Background

Author

Made With

Demo

Rotation & background experiment

Move your mouse around, see the result. No SVG/canvas/anything else! I really like the effect

More rotational objects can be added easily, just add the appropriate HTML structure (including the necessary classes)

This could also be combined with a CSS-only square container and made responsive very easily. For an example of the technique, check here http://codepen.io/Zeaklous/pen/ImGaH

Author

Made With

Demo

Parallax Star background in CSS

Using a very simple sass function, and CSS animation key frames, built parallax scrolling stars in space. The sass function creates a random star field on each load.

Author

Made With

Demo

Cloudy Spiral CSS animation

Author

Made With

Demo

pure CSS twinkling stars background

Author

Made With

Demo

Background Effect

Author

Made With

Demo

Pure CSS Particle Animation

Author

Made With

Demo

CSS Fireflies

An elegant HTML/CSS only solution for adding a tranquil fireflies effect to you page.

Author

Made With

Demo

infinite SVG Triangle Fusion

Author

Made With

Demo

Animated Ripples background

Author

Made With

Demo

Cool Mountain Background with animations – slightly responsive

Author

Made With

Demo

See the Pen Chameleon background by Roland Warmerdam (@Rowno) on CodePen.

Chameleon background

Author

Made With

Demo

Animation Background-Clip Text Effect – Using Only HTML & CSS

Author

Made With

Demo

CSS3 Animation: Background Color Cycle

Author

Made With

Demo

Animation background #1

Author

Made With

Demo

Animated Background Gradient

Author

Made With

Demo

CSS3 Animation – Background colour

Author

Made With

Demo

CSS Animated Background Landing Page

Cover page with an animated background CSS and background pattern overlay

Author

Made With

Demo

Hearts animation background

Author

Made With

Demo

CSS Animation – Background-image-scroll

Author

Made With

Demo

SVG Animation Background

Author

Made With

Demo

Foundation 6 Animated Background

Author

Made With

Demo

Animated CSS mask-image gradient

Author

Made With

Demo

Parallax Background Image

Author

Made With

Demo

Canva moving background effect

Author

Made With

Demo

Parallax Background Effect

Author

Made With

Demo

CSS background effect

Author

Made With

Demo

Animated CSS mask-image gradient

Author

Made With

Demo

Everything “random()” 😛

Author

Made With

Demo

Simple Parallax Background Effect ( Only Css )

Author

Made With

Demo

See the Pen background effect by Mert Köseoğlu (@mksglu) on CodePen.

background effect

Author

Made With

Demo

Sliding Diagonals Background Effect

Author

Made With

Demo

Text Clip background effect

Author

Made With

Demo

Psychedelic animated background

Author

Made With

Demo

Similar Posts

20+ Best CSS Checkbox – GSCODE

20+ Best CSS Checkbox – GSCODE

Check Out Best collection of html and CSS checkbox Style with example and download source code Dropdown with Multiple checkbox select with jQuery Author Mahmoud Elmahdi Made With HTML,CSS,JS Demo Check Out Demo Links Download Pure CSS iOS Style Switches with Labels Author Jesse Couch Made With HTML,CSS Demo Check Out Demo Links Download only…

CSS Popup/Modal Design: 35+ Examples for Inspiration

CSS Popup/Modal Design: 35+ Examples for Inspiration

Every site developer should have access to CSS Popup/Modal design. You may create amazing and captivating user experiences for your website by using the 35+ examples CSS Popup/Modal provided here, which demonstrate the power of CSS. Title:-Password Modal with Finite State Machine Author:-David Khourshid Made with:- HTML CSS JS Title:-Nifty Modal Window or Slider Effects…

Get Inspired with 30+ CSS Motion Path Examples

Get Inspired with 30+ CSS Motion Path Examples

Here is a list of 30+ CSS motion path examples that demonstrate how to use the CSS motion-path property to animate an element along a custom path: See the Pen Stay cool w/ responsive motion-path 😎 by Jhey (@jh3y) on CodePen. Title:- Stay cool w/ responsive motion-path ??Author:- JheyMade with:- CSS HTML JS See the…

CSS Image Hover Effects: A Collection of 40+ Creative Examples

CSS Image Hover Effects: A Collection of 40+ Creative Examples

Learn how to use CSS to create stunning hover effects for your images with this collection of 40+ creative examples. Title:-#1438 – Image Hover Author:-LittleSnippets.net Made with:- HTML CSS JS Title:-Image Gallery Author:-kw7oe Made with:- HTML CSS JS Title:-Image Hover Interaction Author:-Sikriti Dakua Made with:- HTML CSS JS Title:-#1500 – Image Hover Author:-LittleSnippets.net Made with:-…

30+ CSS Typewriter effect | CSS Typing Animation

30+ CSS Typewriter effect | CSS Typing Animation

Related Articles CSS Text Glitch Effect Cool CSS Text Effects | Text Animation Typewriter effect |Typing animation with Typed.js Author Caroline Vermeir Made With HTML CSS JS Demo Check out Demo LINKS Download Text slider with typing animation in pure CSS Author Adam Lewinski Made With HTML CSS(SCSS) Demo Check out Demo LINKS Download Cheat…

30+ Best CSS Text Stroke Effects For Your Inspiration

30+ Best CSS Text Stroke Effects For Your Inspiration

In this article, we will explore 30 of the best CSS text stroke examples to help you figure out what a CSS text stroke might look like for your projects Title:- Striking Splits ?? | Full Screen Menu Animation Tutorial @keyframers 2.16.0 Author:- @keyframers Made with:- HTML CSS JS Title:- Text stroke animation Author:- Cyd…

Источник

Анимированный фон веб-страницы на чистых HTML и CSS

Подпишись на наш телеграм-канал TechRocks WEB-разработка?

Перевод статьи «Amazing Pure HTML and CSS background animations».

Анимации — это круто, правда? Они добавляют изюминку на сайт и позволяют ему выделиться на фоне конкурентов. Но бывает, что вы решили создать сайт исключительно на HTML и CSS, и это несколько ограничивает полет вашей фантазии. И совершенно зря! Даже если у вас в наборе только эти два инструмента, вы все равно можете достигнуть потрясающих визуальных эффектов. В этой статье вы найдете несколько идей, от которых сможете отталкиваться в дальнейшем.

Диагональный градиент

Написать такой код легко, а эффект получается очень интересный.

Скольжение диагоналей

Предыдущий эффект был очень ненавязчивым, а этот гарантированно привлекает внимание.

Анимированный фон

Обратите внимание, насколько прост сам бэкграунд и насколько меняется его восприятие благодаря анимации.

Бесконечный паттерн

Отдельное спасибо @keyframes за бесконечную прокрутку!

Прекрасный анимированный бэкграунд

Просто задержитесь на мгновение и насладитесь тем, насколько привлекательна эта анимация. Такое приятное смешение цветов, а между тем оно совершенно не отвлекает внимание от названия на переднем плане.

Анимированный «лесной» фон

Плавающие квадраты

See the Pen Pure Css Animated Background by Mohammad Abdul Mohaiman (@mohaiman) on CodePen.

Снова диагональные линии

Плывущие облака

Да, в названии заявлено, что все на чистом СSS, но когда я увидел этот фон, не смог не добавить его в коллекцию, несмотря на то, что здесь использован CSS(Less).

Надеюсь, эти идеи вдохновят вас на создание собственных интересных эффектов. Поиграйтесь с приведенными CodePen-ми: возможно, таким образом и у вас родится замечательная идея.

Источник

Оцените статью