Mastering the art of hover animations can be a game-changer, but it's crucial to

I've attempted to include transitions in every aspect, however, none of the animations seem to be working. This behavior is quite peculiar to me. What could be causing this issue? Apologies for the placeholder text, but I needed to ask the question. At this moment, I am uncertain about any additional information or explanations that could be provided.

I tried to put transition everywhere, but not one animation does not work, for me, this is strange behavior. What could it be connected with? sorry for the text fish, otherwise the question was not asked. I really don't know what else can be explained or added here.

 .background[data-v-0d076cda] {
     background-image: url("https://static-cse.canva.com/blob/241536/%D0%9E%D1%81%D0%B5%D0%BD%D0%BD%D0%B8%D0%B5-%D0%BE%D0%B1%D0%BE%D0%B8-%D0%BD%D0%B0-%D1%80%D0%B0%D0%B1%D0%BE%D1%87%D0%B8%D0%B9-%D1%81%D1%82%D0%BE%D0%BB-%D0%BE%D1%82%D1%80%D0%B0%D0%B6%D0%B5%D0%D0%BD%D0%B8%D0%B5.png");
   height: 880px;
   width: 100%;
   display: flex;
   justify-content: space-between;
   color: white;
  
}

.background .block[data-v-0d076cda] {
   border-right: 1px solid white;
   height: 100%;
   flex-grow: 1;
   display: flex;
   flex-direction: column;
   flex-basis: 300px;
   padding-left: 60px;
   transition: all 1s ease 0.2s;
  
}

.background .block .h3[data-v-0d076cda] {
   color: white;  
}

.background .block .wrap[data-v-0d076cda] {
   margin-top: auto;
   transition: all 1s ease 0.2s;
  
}

.background .block p[data-v-0d076cda] {
   color: rgba(255, 255, 255, 0.5);
  
}

.background .block .desc[data-v-0d076cda] {
   color: white;
   transition: all 2s ease;
   margin-bottom: 106px;
   transition: all 1s ease 0.2s;
  
}

.background .block .desc span[data-v-0d076cda] {
   display: none;
   transition: all 1s ease 0.2s;
  
}

.background .block:hover .wrap[data-v-0d076cda] {
   margin-top: 106px;
   margin-bottom: auto;
  
}

.background .block:hover .desc span[data-v-0d076cda] {
   display: block;
  
}

.background.block[data-v-0d076cda]:last-child {
   border-right: none;
  
}
<div class="background" data-v-0d076cda="" data-v-2a183b29="">
   <div class="block" data-v-0d076cda="">
  <div class="wrap" data-v-0d076cda="">
     <h3 class="h3 h3" data-v-20882b1b="" data-v-0d076cda="">Многолетний опыт</h3>
     <p data-v-0d076cda="">19 лет на рынке строительства</p>
  </div>
  <p class="desc" data-v-0d076cda=""><span data-v-0d076cda="">text</span>
  </p>
   </div>
   <div class="block" data-v-0d076cda="">
  <div class="wrap" data-v-0d076cda="">
     <h3 class="h3 h3" data-v-20882b1b="" data-v-0d076cda="">Качество и комфорт</h3>
     <p data-v-0d076cda="">в каждой детали</p>
  </div>
  <p class="desc" data-v-0d076cda=""><span data-v-0d076cda="">text</span>
  </p>
   </div>
   <div class="block" data-v-0d076cda="">
  <div class="wrap" data-v-0d076cda="">
     <h3 class="h3 h3" data-v-20882b1b="" data-v-0d076cda="">Настоящий кирпич</h3>
     <p data-v-0d076cda="">долговечный материал</p>
  </div>
  <p class="desc" data-v-0d076cda=""><span data-v-0d076cda="">text</span>
  </p>
   </div>
   <div class="block" data-v-0d076cda="">
  <div class="wrap" data-v-0d076cda="">
     <h3 class="h3 h3" data-v-20882b1b="" data-v-0d076cda="">Чистая экология</h3>
     <p data-v-0d076cda="">рядом Сормовский Парк</p>
  </div>
  <p class="desc" data-v-0d076cda=""><span data-v-0d076cda="">text</span>
  </p>
   </div>
</div>

Answer №1

I'm sorry, I wasn't able to grasp the exact requirements you had in mind. However, after making some adjustments to both the HTML and CSS code, I was able to ensure that the transition is now functioning correctly.

.background[data-v-0d076cda] {
     background-image: url("https://static-cse.canva.com/blob/241536/%D0%9E%D1%81%D0%B5%D0%BD%D0%BD%D0%B8%D0%B5-%D0%BE%D0%B1%D0%BE%D0%B8-%D0%BD%D0%B0-%D1%80%D0%B0%D0%B1%D0%BE%D1%87%D0%B8%D0%B9-%D1%81%D1%82%D0%BE%D0%BB-%D0%BE%D1%82%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5.png");
   height: 880px;
   width: 100%;
   display: flex;
   justify-content: space-between;
   color: white;
  
}

.background .block {
   border-right: 1px solid white;
   height: 100%;
   flex-grow: 1;
   display: flex;
   flex-direction: column;
   flex-basis: 300px;
   padding-left: 60px;
   transition: all 1s ease .2s;
  position: relative;
}

.background .block .h3 {
   color: white;
   position: absolute;
   top:75%;
   transition: all 1s ease .2s;
}

.background .block p[data-v-0d076cda] {
   color: white;
   position: absolute;
   top:80%;
   transition: all 1s ease .2s;
}

.background .block p[data-v-0d076cda] {
   color: rgba(255, 255, 255, 0.5);
  
}



.background .block .desc {
   color: white;
   position: absolute;
   top:83%;
   display: none;
}



.background .block:hover h3 {
   top:10%;
   display: block;
}

.background .block:hover p[data-v-0d076cda] {
   top:15%;
   display: block;
}

.background .block:hover .desc {
   display: block;
}

.background.block:last-child {
   border-right: none;
  
}
<div class="background" data-v-0d076cda="" data-v-2a183b29="">
   <div class="block">
     <h3 class="h3" data-v-20882b1b="" data-v-0d076cda="">Years of Experience</h3>
     <p data-v-0d076cda="">19 years in the construction market</p>
     <p class="desc"><span data-v-0d076cda="">text</span></p>
</div>

... (remaining content remains unchanged)
 
</div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

"Encountered an issue with implementing Materialize CSS autocomplete with JQuery UI: Uncaught TypeError - 'this.source is not

I am currently utilizing the Materialize CSS library and I came across an interesting feature for creating an #autocomplete dropdown (located at the end of the page). However, upon trying to implement it, an error keeps popping up while typing. Uncaugh ...

Adjust the PHP variable's value when loading content via AJAX

Seeking assistance after attempting to create a PHP template within the Foundation 4 framework without clear guidance. The framework is quite basic, so I used jQuery to incorporate page transitions by making an AJAX call to retrieve "content" from another ...

Controlling the page scroll when adding data using jQuery

I am encountering an issue with a webpage that displays around 20 pictures in separate divs stacked vertically. Below these 20 pictures, there is a "show more" button that, when clicked, loads another set of 20 pictures and appends them to the existing dat ...

Guide on how to show an icon in Meteor when a link is clicked

Is there a way to display a viewed icon upon clicking a link in Meteor? On my list of jobs page, when a user clicks on a job, they are taken to the description page. I would like to add an icon to the post indicating that the user has viewed it. ...

What could be the reason that str_replace is failing to replace this particular string?

I am facing an issue with my PHP code that is intended to load data from a CSS file into a variable, find the old body background colour, replace it with a new colour submitted through a form, save the updated CSS file, and update the colour in a database. ...

Customizing Bootstrap Styles in Angular: How to Override Specific Classes

Looking to customize an HTML element <div [style.color]="themeService.backgroundColor" class="col-md-10 col-md-offset-1 col-sm-10 col-sm-offset-1 col-lg-10 col-lg-offset-1"> <ul class="pagination" id="pag-bar"> <l ...

Is Angular 2 hardcoded to all HTML tags?

As a beginner in Angular 2, I am struggling to understand whether Angular 2 recognizes all HTML tags. For instance, if I include <code></code> in a template, which is a valid HTML 5 element, there are no issues. However, if I change it to < ...

Creating iterative headings in R Quarto HTML

I'm in the process of creating an innovative Quarto HTML document. My goal is to generate dynamic headings within the HTML code. I have managed to achieve the following successfully: {r} #| output: asis star_wars_data = data(starwars) TESTING <- ...

Issue with rendering components list in React.js

I am currently working on a project using React, and I'm facing an issue where my list is not displaying on render(). In my parent component, I have a list of components coming from SearchResult. Below is the relevant portion of my code: class Create ...

What is the best way to ensure that bootstrap columns collapse in equal multiples?

I need to have 4 equal columns in each bootstrap row with only specific configurations allowed: All 4 next to each other Two above and two below All in a single column The issue is that when I adjust the screen size, sometimes I get 3 columns at the top ...

The divs are causing the site to grow larger and are not lining up correctly

My problem arises from the challenge of aligning my sidebar and a table vertically. Despite attempting to use float: left on the table, it only expanded the site width without properly aligning them side by side within Bootstrap, CSS, and HTML constraints. ...

What causes the odd centering of elements within Bootstrap5 rows on a card? Is there a way to ensure they are centered vertically?

Let me share with you an example of the work I have been doing. <!DOCTYPE html> <html> <head> <link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="35575a5a41464147544 ...

Convert the div into a string, including only the visible elements

Within the div #allContent, there are multiple nested divs. My goal is to extract the entire content of #allContent as a string, while excluding any invisible divs contained within it. I believe that this task can be achieved using a combination of filter ...

Incorporating a checkbox option within a table

Hello, I am currently working on a PHP project and I have a question about adding checkboxes to a table to indicate selection. Since I couldn't find any existing answers on how to toggle checkboxes when clicking on a table row, I thought I'd shar ...

Refrain from showing content beneath a certain element

Is there a way to hide all content that appears after a specific element, such as a particular class of div? The issue I am facing involves using a 1&1 webpage builder with a restrictive layout-template enforced by my boss. I am trying to remove the foote ...

jquery is in motion while svg paths are at a standstill, waiting to

i have been attempting to incorporate a css-animated svg into my project. initially, the animation would start automatically, which was undesirable. after some research, i discovered that by declaring it as paused and then triggering it using jQuery with $ ...

A guide on converting SVG Files to PDF format with JSPDF using JavaScript

I encountered difficulties converting SVG Files into PDF using JSPDF. Here is the code I tried: var doc = new jsPDF(); var test = $.get('amChart.svg', function(svgText){ // console.log(svgText); var svgAsText = new XMLSerialize ...

The AJAX function fires only on the first click and does not work upon subsequent clicks when utilizing buttons within dynamically created tables

Currently, I am facing an issue where I am attempting to trigger an event to delete an element. This particular delete event should apply to the element that is clicked as well as an object above it. The Ajax call below works perfectly fine when utilized w ...

Can someone guide me on incorporating a plus/minus feature into Django forms?

What is the best way to integrate this into a Django form? 2/3: 2 represents the currently selected number of items, while 3 is the maximum allowed Note that this form does not interact with the model; instead, it sends data to the Redis server upon cl ...

Facing compilation errors in Sass due to grid issues

@media (min-width: 40em) { .article__grid { -ms-grid-columns: (1fr)[2]; grid-template-columns: repeat(2, 1fr); } } @media (min-width: 64em) { .article__grid { -ms-grid-columns: (1fr)[4]; grid-template-columns: repeat(4, 1fr); ...