Interactive Bootstrap container revealed with hover effect

I'm trying to create a row with 3 blocks (col-md-4) that will "popout" on hover, overlapping the parent container. I've been experimenting but can't quite achieve it while sticking to Bootstrap classes.

Any suggestions for how to accomplish this effect? Google hasn't been very helpful when searching for "popout containers" :)

I'd prefer to do it using CSS.

https://i.sstatic.net/KMtDW.jpg

HTML:

 <section class='container-fluid whitebg center-align' id='whyus'>
        <div class="container">
            <div class="row">
                <div class="col-md-4 whyusblock">
                    <img src="/img/icons/highestgrade.png" />
                    <h4>LEADING INDUSTRY</h4>
                    <p>Our professional-grade tools, resins, and equipment are preferred by windshield repair and headlight restoration technicians and are respected for quality, durability, and ease of use.</p>
                </div>
                <div class="col-md-4 whyusblock">
                    <img src="/img/icons/highestgrade.png" />
                    <h4>QUALITY GUARANTEED</h4>
                    <p>Our windshield repair and headlight restoration products are used by technicians all around South Africa. Every systems comes with a 100% quality guarantee that won’t let you down.</p>
                </div>
                 <div class="col-md-4 whyusblock">
                     <img src="/img/icons/highestgrade.png" />
                    <h4>PROFESSIONAL TRAINING</h4>
                    <p>We provide free professional training with all our windshield repair and headlight restoration products, so you know you provide the best possible repair and restoration service.</p>
                </div>
            </div>
        </div>
    </section>

CSS:

 #whyus {
     background: #f7f7f7;
 }

 .whyusblock {

  }

   .whyusblock:hover {
       background: #fff;
       -webkit-box-shadow: 0px 0px 30px -10px rgba(0,0,0,0.67);
       -moz-box-shadow: 0px 0px 30px -10px rgba(0,0,0,0.67);
       box-shadow: 0px 0px 30px -10px rgba(0,0,0,0.67);
 }

Answer №1

Take a look at this sample featuring:

transition: all .2s ease-in-out;

This demonstration can provide insight on how to improve your code. For additional examples, you may want to explore this resource..

Answer №2

Here is an example:

https://jsfiddle.net/abc123/

   .custom:hover {
       background: #fff;
       -webkit-box-shadow: 0px 0px 30px -10px rgba(0,0,0,0.67);
       -moz-box-shadow: 0px 0px 30px -10px rgba(0,0,0,0.67);
       box-shadow: 0px 0px 30px -10px rgba(0,0,0,0.67);
       transition: all .2s ease-in-out;
       transform: scale(1.1);
       z-index:9999;
 }

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

Why is it that the edit or delete button is not functioning when I attempt to click on the next page?

Having an issue with my script. It works fine for editing and deleting on the first page, but when I navigate to the next page, those functionalities stop working. Can anyone help me troubleshoot this problem? <script> $(function(){ $(&ap ...

What are the steps to editing and removing items from the list?

I'm currently developing my own client-server application. I have created a basic HTML structure and utilized methods from previous exercises to add items to the server without involving any database operations yet. In the service class, I implemented ...

Utilizing Radio buttons to Align Labels in Bootstrap 4

I'm experimenting with a Bootstrap 4 form and trying to get inline radio buttons with labels. It was working fine with Bootstrap 3, but I'm facing issues with Bootstrap 4 and its custom-radio styling. Desired Output: Gender : ( ) Male ( ) Female ...

Utilizing Java's IE/Chrome HTML-Renderer or managing file storage with JavaScript

I am currently in the process of developing a small application that operates offline only. I want to keep it simple and was considering using HTML, CSS, and JavaScript as they should suffice for my needs. However, I require access to the filesystem to sto ...

How can you align a button in the center relative to another button positioned above it?

I am having trouble centering a button in relation to the button above it. The image shows that the lower button is not properly centered. I attempted to fix this issue by using the following CSS: .btn { padding: 16px 22px; color: #fff; border-radiu ...

Issue with Firefox browser: Arrow keys do not function properly for input tags in Twitter Bootstrap drop down menu

Requirement I need to include a login form inside the dropdown menu with username and password fields. Everything is working fine, except for one issue: Issue When typing, I am unable to use the arrow keys (up/down) in Firefox. This functionality works ...

Postponing the initial display of a webpage

I am working with a web application from a different company that has some customization options limited to CSS and allows me to add HTML content at certain points in the code. However, I need more flexibility than what CSS can offer, so I have resorted t ...

View two tiled images side by side and seamlessly load them in real-time with our innovative image viewer

Currently, I am working on creating a webpage where two tiled images can be loaded and displayed side by side. The goal is for these images to zoom in together but remain separately tiled. After doing some research, it seems that using Seadragon may not al ...

Unable to assign an ID value to a <span> element within a <th v-for="" > tag

I am attempting to assign the ID value of the span tag within a for loop using v-for. <table class="APPPPTable" style="width:100%;font-size:11px;"> <thead> <tr> <th v-for="heading in tableInfo.columns" class="text-c ...

How to style a CSS list and center-align it

My website features a <ul> list with submenus structured like this: <div id="cssmenu"> <ul> <li class='active'><a href='index.html'><span>Home</span></a></li> <li class=&ap ...

Arrangement of p tag and br tag in HTML

This is what I desire. https://i.sstatic.net/jhwrp.png This is what I am receiving. https://i.sstatic.net/quwUN.png This is the code I have written. I am struggling with the spacing. Aligning the p tag with the br tag is proving to be a challenge for me. ...

Duplication of elements in a Meteor and React environment

When it comes to creating a basic Meteor app with React, this is the structure I have put in place: <head> <title>test</title> </head> <body> <div id="render-target"></div> </body> Here is the start ...

Enhance your Coda experience with custom Jade and Stylus syntax highlighting!

Has anyone successfully tried using both Haml and Less? I attempted to use them since they are similar, but unfortunately had no luck. The Less one appeared in modes, while the Haml one didn't even show up. I also added the file type in the preferenc ...

Custom font causing vertical gaps in masonry grid layout plugin

My front page layout is arranged using the "Masonry" jQuery plugin, with each div containing an upper image div and a lower text div. The plugin is initialized like this: function use_masonry() { var container = document.querySelector( ...

Is there a way to invoke a function in an iframe from its parent?

How can I call a function that is in an iframe from the parent document? If the function were in the parent, I could simply use parent.func(); but since it's within the iframe, how can I still call it successfully? JavaScript keeps saying it can' ...

responsive full-screen navigation bar, combined with an image and text elements

I am completely new to Front end development, and this is my very first client project where I could really use some assistance. Could someone please guide me on how to ensure that everything on the website is responsive for mobile and tablet devices? Be ...

I am interested in calculating the total number of words within a Microsoft Word document

My current PHP code utilizes the COM class to count the number of words in a Word file. Everything works smoothly on my local machine, but once I try running it on the server, an error is triggered. The error message reads as follows: Fatal error: Class & ...

Exploring the power of CSS grid in React/Gatsby for creating dynamic layouts with varying numbers of columns in each

I need help creating a dynamic grid layout where the number of columns alternates between rows. For example, I want the first row to have one column, the second row to have two columns, and so on. Right now, my grid only has two columns per row. Does anyon ...

Combining all elements of my application into a single HTML, JS, and CSS file

My AngularJS app has a specific structure that includes different directories for each component: theprojectroot |- src | |- app | | |- index.html | | |- index.js | | |- userhome | | | |- userhome.html | | | ...

Chosen Buttons for Emailing

I have recently created a multistep form and have implemented functionality to receive the form contents via PHP email. However, I am facing a challenge where, when I navigate through the form and encounter multiple buttons to choose from, the email I rece ...