Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css can I move element in another div when hover on another

.hover {
  background-color: blue;
  padding: 8px;
}

.move {
  background-color: red;
  padding: 8px;
  transition: 0.5s;
}

.hover:hover ~ .move {
  margin-top: 48px;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #I #move #element #div #hover
ADD COMMENT
Topic
Name
6+2 =