Issue with Firefox hover effect not applying transform:scale

I'm experiencing some difficulties with the border colors when using transform:scale on my element. I want to find out if there is a known solution to this issue. Removing the scale animation resolves the problem and the borders return to normal. I have tried various methods, including scaling up and down, zoom, and adjusting the transform-origin, but none of them seem to fix this strange problem. Interestingly, this issue does not occur in Chrome.
JSfiddle

body {
  background-color: lightblue;
}

.player-chromecast {
  border: 2px solid white;
  border-radius: 4px;
  width: 22px;
  height: 17px;
  position: relative;
  margin: 10px;
}

.player-chromecast:hover {
  transform: scale(1.1)
}

.broadcast {
  background-color: lightblue;
  width: 18px;
  height: 19px;
  position: absolute;
  bottom: -3px;
  left: -2px;
}

.broadcast:after {
  content: '';
  height: 5px;
  width: 5px;
  border-top-right-radius: 20px;
  position: absolute;
  top: 13px;
  background-color: white;
}

.reception {
  border: 2px solid white;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-top-right-radius: 20px;
  position: absolute;
}

.first-bar {
  height: 6px;
  width: 6px;
  top: 8px;
}

.second-bar {
  height: 11px;
  width: 11px;
  top: 3px;
}
<div class="player-chromecast">
  <div class="broadcast">
    <div class="reception first-bar"></div>
    <div class="reception second-bar"></div>
  </div>
</div>

Answer №1

body {
  background-color: #20262e;
}

h1 {
  color: white;
  text-align: center;
}
.player-chromecast:hover .reception {
    border-bottom-color: transparent;
    border-left-color: transparent;
}
p {
  font-family: verdana;
  font-size: 20px;
}

.player-chromecast {
border-left: 1px solid #fff !important;
border: 2px solid white;
border-radius: 4px;
width: 22px;
height: 17px;
position: relative;
margin: 10px;
border-bottom: 1px solid #fff !important;
}

.player-chromecast:hover {
  transform: scale(1.1)
}

.broadcast {
  background-color: #20262e;
  width: 18px;
  height: 19px;
  position: absolute;
  bottom: -3px;
  left: -2px;
}

.broadcast:after {
  content: '';
  height: 5px;
  width: 5px;
  border-top-right-radius: 20px;
  position: absolute;
  top: 13px;
  background-color: white;
}

.reception {
  border: 2px solid white;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-top-right-radius: 20px;
  position: absolute;
}

.first-bar {
  height: 6px;
  width: 6px;
  border-left: 0px;
  top: 8px;
}

.second-bar {
  height: 11px;
  width: 11px;
  border-left: 0px;
  top: 3px;
}
<!DOCTYPE html>
<div class="player-chromecast">
  <div class="broadcast">
    <div class="reception first-bar"></div>
    <div class="reception second-bar"></div>
  </div>
</div>

Please test it on different web browsers and confirm if the hover effect is working as expected without any border issues. Let me know if you encounter any bugs.

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

methods to locate the parent element of an element with selenium

<button class="wpO6b ZQScA" type="button"> <div class="QBdPU "> <svg aria-label="New Message" class="_8-yf5 " fill="#262626" height="24" viewBox="0 0 44 44" widt ...

Restricting the number of characters allowed for text messages and keeping track of the count

I am attempting to implement a character limiter for an html textarea using JavaScript. Additionally, I want to include a total character counter. Unfortunately, the code I have written isn't functioning as expected. Can anyone identify where my mist ...

Use an if-else statement in jQuery with selectors to determine if a specific div element has been added to it

What if you have a main div and append one of these sub-divs to it? For example: <div class ="append"> <div id ="one"></div> <div id ="two"></div> </div> Then in jQuery, could you do something like this: if ($(.a ...

Connect CSS Transition to a click action

Below is the code snippet. When you click on the div, it creates a folding effect to the left. You can view it here. I want to link this effect to the arrows I use for sliding back and forth. For example: The left arrow should move the slide to the l ...

Installing assets automatically in Netbeans for Symfony2

Whenever I test my application, I find myself having to run the following command in Netbeans: assets:install Repeating tasks gets quite tedious... Symfony2 requires running this command to ensure that modified files are placed in the correct location. ...

What is the best way to locate and list all video links, and include options for "Play Video" and "Download Video"?

I have a project where I am using PHP to crawl and generate video links from the web. Now, I am looking to implement an option for users to either "Play Video" or "Download Video" when a video link is detected, along with adding a video player if the user ...

Creating an HTML form that adjusts its size and layout based

Struggling to make my HTML Form responsive - it displays well on desktops, but not on mobile devices or tablets. Want to take a look at the code? Here's the link: JSFiddle I've attempted removing overflow: hidden and white-space: nowrap; from t ...

With the addition of a key element in the opening statement

Take a look at this code snippet: <div class="content"> This is some title<br/> Some text<br/> And maybe more text. </div> I am trying to wrap the first sentence with a <span> tag before the <br/> element, like s ...

Changing `margin-top` will also affect adjacent sibling elements

Currently, I am in the process of designing an About page for my website. Within this layout, there is a main parent element named maindiv, which utilizes a flexbox to house two children: leftcont and rightcont. My goal is to implement an animation using m ...

Guide to retrieving a user's current address in JSON format using Google API Key integrated into a CDN link

Setting the user's current location on my website has been a challenge. Using Java Script to obtain the geographical coordinates (longitude and latitude) was successful, but converting them into an address format proved tricky. My solution involved le ...

Changing the z-index using createjs

Is there a way to ensure that the dragged item always stays on top when moved? How can I prevent it from getting dragged underneath another object? Can I specify which "sequenceNumbers" should be moved to the top of the sorting order? //++++++++ ...

Form submission not capturing multiple HTML select options

I have encountered an issue with a form that contains 2 fields: a hidden field and a multiple select. Upon form submission, the hidden field successfully reaches the django views.py file, but the selected values from the multiple select do not get transmit ...

Encountering an ElementClickInterceptedException while trying to click the button on the following website: https://health.usnews.com/doctors

I am currently in the process of extracting href data from doctors' profiles on the website . To achieve this, my code employs Selenium to create a web server that accesses the website and retrieves the URLs, handling the heavy lifting for web scrapin ...

Organizing DIVs upon website initialization

My website features a layout with three columns: <div id="column1"></div> <div id="column2"></div> <div id="column3"></div> I currently have 3 divs on the webpage: <div id="1">aaa</div> <div id="2">b ...

Showcasing MySQL Data With Divs

Is it possible to display images from a MySQL database, specifically two images in a row, using div tags instead of tables? I've searched through various articles on Stack Overflow which all suggest using the table tag. However, I am curious if there ...

After the rendering of the HTML, the value of the jQuery input does not change

Here we have a function that loads HTML onto the form class in a file. The quest[q] locates the appropriate HTML template to load from an array of templates. The HTML being loaded contains an input with an id of "p". I am attempting to set the value of th ...

What is a method for capturing the value of a nested input element without requiring its ID to be

Currently, I am facing a challenge in selecting the value of an input box from a user-generated ordered list of text boxes and logging its value to the console. It seems like I cannot find a way to select the value of a child's child element when the ...

Centering Text and Image in React Horizontally

I'm attempting to achieve a layout similar to the one shown in the image below. Currently, my image is positioned at the top with the text below it. I would like to arrange it so that the text appears on the right side of the image. Please take a loo ...

Optimizing web content for iOS Safari with min-height media queries

I'm currently working on a Bootstrap-based photo browser that needs to have a responsive 4:3 aspect ratio. To achieve this, I have implemented the following approach: #carousel { width: 320px; height: 240px; ... } Additionally, I utilize media ...

Striving to make edits that will reflect changes in the database, however, I continue to encounter error CS0123 stating that there is no matching overload for 'Insert_Click' with the delegate 'EventHandler'

Welcome to the front-end of my webpage: <div class="div"> <asp:Button style="background-color: #007aff; width: 100%; padding: 5px" Text="SAVE" OnClick="Insert_Click" ID="InsertID" runat="s ...