Hongmu Notes
Home Language Notes CSS

CSS

Cascading Style Sheets (CSS) is a computer language used to define the styling of documents such as HTML (an application of the Hypertext Markup Language) or XML (a subset of the Hypertext Markup Language). CSS not only allows for the static styling of web pages but can also be used in conjunction with various scripting languages to dynamically format various elements on a webpage.

css mouse hover menu appears

css mouse hover menu appears Language Notes CSS

A menu overlay is displayed when the user hovers the mouse over the image. Use an `a` wrapping element along with an element that contains the menu links. `<figure><img><div>` – Use the `transform` property to animate the image upon hovering, creating a sliding effect. Set the `opacity` property to a negative value; reset it to its original value when the mouse leaves the image...
👁 339
css image overlay effect displayed on mouseover

css image overlay effect displayed on mouseover Language Notes CSS

displays an image overlay effect during hovering. Use the `:before` and `:after` pseudo-elements for the top and bottom bars of the overlay layer, respectively; configure their properties to achieve the desired effect. `:before`, `:after`, `opacity`, `transform`, `transition` – apply these to the overlay text. Set the appropriate values and center the text within the image. `<figcaption>` `display: flex`...
👁 205
css to create a double-sided card that rotates on hover

css to create a double-sided card that rotates on hover Language Notes CSS

Create a double-sided card that rotates on hover. Set the card's properties to "None". For the backface-visibility property, initially set the back side to "None" and the front side to "Visible". For the rotateY() function: set the value to-180deg or 0deg after the card is hovered over; set the value to 180deg or 0deg to apply the rotation effect. Adjust the perspective property as needed.
👁 165
css hamburger button

css hamburger button Language Notes CSS

Display a hamburger menu that transforms into a checkmark button when hovered over. Use a container containing top, bottom, and middle bars. Apply the following styles to the `.hamburger-menu div`: `display: flex; flex-flow: column-reverse`. Add a spacing between the bars using `justify-content: space-between`.
👁 158
css siblings fade

css siblings fade Language Notes CSS

Fade out the hovered element to its sibling level. Apply an animation to the changes made using `a`. `transition-opacity` uses the `&` pseudo-class selector to modify all elements except the one where the mouse is positioned. `:hover:not(.opacity0.5) <div class= "sibling-fade"> <span...`
👁 309
animate.css – a complete CSS3 animation library

animate.css – a complete CSS3 animation library Language Notes CSS

Introduction animate.css is a CSS3 animation library from abroad. It presets more than 60 animation effects such as shake, flash, bounce, flip, rotate (rotateIn/rotateOut), fadeIn/fadeOut, etc., including almost all common animation effects. Although…
👁 211
How to set p tag not to wrap in css?

How to set p tag not to wrap in css? Language Notes CSS

The p tag is a block-level element and will occupy its own line. What if we want to set two p tags on the same line? Let's take a look at how to use css to set the p tag not to wrap. By default, the p tag will wrap automatically. Let’s take a look at how to use css to set the p tag not to wrap: Example p{display: inline;}&lt;p&gt;aaa&lt;/p&gt; &l…
👁 280
Use css to add a hand style. Move the mouse up to make the hand smaller.

Use css to add a hand style. Move the mouse up to make the hand smaller. Language Notes CSS

Use css to add a hand style, move the mouse up to make the hand smaller, and make the hand smaller cursor:pointer; use JS to make the mouse smaller onmouseover (when the mouse passes over) onmouseover="this.style.cursor='hand'"cursor other values ​​auto: standard cursor default: standard arrow pointer,…
👁 170
css3 grid layout

css3 grid layout Language Notes CSS

1. Overview Grid layout (Grid) is the most powerful CSS layout solution. It divides web pages into grids, and different grids can be combined arbitrarily to create various layouts. Effects that were previously only possible through complex CSS frameworks are now built into browsers. A layout like the one pictured above is the specialty of Grid layout. Grid layout and Flex layout have certain similarities, both can specify the content...
👁 218
CSS rounded corners

CSS rounded corners Language Notes CSS

CSS rounded corners can be used to achieve the "rounded" style of any element through the CSS border-radius property. CSS border-radius property The CSS border-radius property defines the radius of an element's corners. Tip: You can use this property to add rounded corners to your elements! Here are three examples: Here is the code: Example #rcorners1 { border-r…
👁 226
1 2 3 4