以下是一些使用CSS实现很棒的径向渐变色彩背景动画的方法: **一、基本的径向渐变设置** 1. **普通径向渐变** - 语法:`background - image:radial - gradient(颜色1,颜色2);` - 例如:`background - image:radial - gradient(#f00, #ffa500);`这将创建一个从红色(#f00)到橙色(#ffa500)的径向渐变背景。 2. **带有形状、大小和位置的径向渐变** - 语法:`background - image:radial - gradient(shape size position, color1,color2,color3...);` - 其中,`shape`可以是`circle`(圆形)或者`ellipse`(椭圆);`size`可以是`closest - side`(指定径向渐变的半径长度为从圆心到离圆心最近的边)、`closest - corner`(指定径向渐变的半径长度为从圆心到离圆心最近的角)、`farthest - side`(指定径向渐变的半径长度为从圆心到离圆心最远的边)、`farthest - corner`(指定径向渐变的半径长度为从圆心到离圆心最远的角);`position`用于指定圆心的位置。 - 例如:`background - image:radial - gradient(circle closest - side at 50% 50%, #f00, #00f);`创建一个以中心(50% 50%)为圆心,半径到最近边的圆形径向渐变,从红色(#f00)到蓝色(#00f)。 **二、动画设置** 1. **简单的背景位置动画** - 可以使用`@keyframes`规则来创建动画帧。例如: ```css @-webkit - keyframes gradient { from { background - position: top; } to { background - position: bottom; } } @keyframes gradient { from { background - position: top; } to { background - position: bottom; } } html, body { height: 100%; width: 100%; } body { -webkit - animation: gradient 39s ease 0s infinite alternate; animation: gradient 39s ease 0s infinite alternate; background: -webkit - radial - gradient(50% 100%, circle, #f00, #ffa500, #ff0, #008000, #00f, #800080); background: radial - gradient(circle at 50% 100%, #f00, #ffa500, #ff0, #008000, #00f, #800080); background - size: 300%; } ``` - 这里创建了一个名为`gradient`的动画,在39秒内无限交替地改变背景位置,背景使用了一个径向渐变,包含多种颜色。 2. **渐变跟随鼠标光标动画(悬停效果)** - 首先声明`--x`和`--y`两个CSS变量,用于跟踪鼠标在按钮上的位置,声明一个`--size`的CSS变量用于修改背景渐变的尺寸大小。 - 使用`background:radial - gradient(circle closest - side, pink, transparent)`创建按钮的径向渐变背景效果。 - 使用`document.querySelector()`和`EventTarget.addEventListener()`给按钮绑定`'mousemove'`事件。 - 使用`element.getBoundingClientRect()`和`CSSStyleDeclaration.setProperty()`更新`--x`和`--y`变量的值。示例代码如下: ```html ``` ```css /*按钮基本样式*/ .mouse - cursor - gradient - tracking { position: relative; background: #7983ff; padding: 0.5rem 1rem; font - size: 1.2rem; border: none; color: white; cursor: pointer; outline: none; overflow: hidden; } .mouse - cursor - gradient - tracking span { position: relative; } /*按钮渐变背景,这里使用伪类实现,并且使用transform动画*/ .mouse - cursor - gradient - tracking:before { --size: 0; /*渐变背景尺寸*/ content: ''; position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); /*背景渐变*/ background: radial - gradient(circle closest - side, pink, transparent); /*动画效果*/ transform: translate(-50%, -50%); transition: width 0.2s ease, height 0.2s ease; } /*鼠标经过按钮时*/ .mouse - cursor - gradient - tracking:hover:before { --size: 200px; } ``` ```javascript // 获取按钮元素 let btn = document.querySelector('.mouse - cursor - gradient - tracking'); // 绑定鼠标移动事件 btn.addEventListener('mousemove', e => { // 获取按钮的左,上,右和下分别相对浏览器视窗的位置 let rect = e.target.getBoundingClientRect(); // 计算鼠标坐标相对于按钮左、上的距离 let x = e.clientX - rect.left; let y = e.clientY - rect.top; // 更新背景渐变区域的坐标 btn.style.setProperty('--x', x + 'px'); btn.style.setProperty('--y', y + 'px'); }); ``` 点击前往免费阅读更多精彩小说
You can get an original cartoon slogan background picture from Qianku. You can also find cartoon slogan pictures, cartoon slogan materials, cartoon slogan templates, cartoon slogan backgrounds, cartoon slogan photography pictures, and other related picture materials for slogan animation backgrounds. In addition, there were also some cartoon backgrounds that focused on fire safety, the final college entrance examination, civilized traffic slogans, safety production paintings, and other topics that could be used as reference materials, but these materials were mainly poster backgrounds. There were also some animated resources such as the cartoon gif of a male cheering slogan, the red title gif of the slogan 2022, and so on, which might also be related to the slogan animation background. <a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
Black and white radial comics usually stand out with their simplicity and emphasis on form. The radial design can create a sense of movement and focus, while the black and white tones add a classic and stark aesthetic.
It could be the exaggerated expressions or actions of the characters during the procedure. Maybe the way the medical equipment is depicted in a comical way.
The following were some animes that involved high-quality backgrounds: " Red Master Justice,"" The Story of the Rabbit,"" Happy and His Son," etc. There were also animes that were set in the Six Worlds of Xianxia, in which Wukong had a mission to fight demons, and animes with zombies and zombies as the background, such as " Electric Dimension." At the same time, there were also some pictures related to high-quality anime backgrounds, including scenery, street scenes, instagram style, cute, kawaii, black and white manga style, and other different styles of anime background pictures.
The black and white radial lines in comics often create a visual focus and draw the reader's attention. They might also give a retro or artistic touch depending on the context.
The anime " Go Boy " mainly told the story of a young man named Li Lingxiao's growth on the path of Go. The story was set in ancient China. It told the historical background of the origin of Go in China, as well as the experience of Li Lingxiao and his Go teacher learning Go, participating in competitions, and exploring the world of Go. In this story, Li Lingxiao not only learned Go, but also met many interesting characters who showed his life and emotions outside of Go.
The perfect background for cartoon animation is one that blends seamlessly with the action. It could be a fantasy world full of magic and mystery or a realistic cityscape. It should enhance the emotional impact and make the viewers feel fully immersed in the story.
Background cartoon animation often has bright colors, simple shapes, and smooth movements to catch the viewer's attention.