Unknown model· unknown
CodeFeedback Filtered Instruction — Synthetic (mixed generators)
Create a CSS class called "header" with the following styling: - The font size should be…
- User
Create a CSS class called "header" with the following styling:
- The font size should be 24 pixels.
- The background color should be a radial gradient from #ff0000 to #00ff00.
- The text color should be white.
- The padding should be 10 pixels on all sides.
- The border radius should be 5 pixels.
- The text should be centered horizontally and vertically.
- The class should be applied to a element.
- The linear gradient and radial gradient should animate smoothly and continuously.
Note: The implementation should be optimized for performance to handle large amounts of content within the element without impacting the smoothness of the animations.
- Assistant
.header { font-size: 24px; background: radial-gradient(#ff0000, #00ff00); color: white; padding: 10px; border-radius: 5px; text-align: center; display: flex; justify-content: center; align-items: center; animation: gradientAnimation 10s infinite; }
@keyframes gradientAnimation { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }