css3

CSS animation restarts if I move the mouse when the container retracts. Can you avoid this?

為{幸葍}努か 提交于 2020-01-07 01:49:19
问题 I would like to keep the animation continuing till the end not restart when I move the mouse inside the element but the cursor (mouse pointer) is always inside the original element. Is it possible? My code is: Fiddle Demo .container{ height: 200px; width: 100px; } .conteiner li{ display: inline-block; float: left; text-align: center; height: 100%; width: auto; background-color: white; } .conteiner li a{ position: relative; display: flex; align-items: center; justify-content: center; padding:

workaround for display block and css transitions work properly

被刻印的时光 ゝ 提交于 2020-01-07 00:35:21
问题 CSS transitions will not apply if you set the display property of an element to block immediately before changing the property with the transition attached. You can see the issue in the following example: var dom = {}; dom.creative = document.getElementById('creative'); dom.creative.style.display = 'block'; dom.creative.style.opacity = 1; #creative { display: none; opacity: 0; transition: opacity 2s; } <div id="creative"> <span>Sample text</span> </div> The issue can be fixed by forcing a

How to make checkbox into “Checked” by default?

岁酱吖の 提交于 2020-01-06 21:36:11
问题 I have implemented a CSS3 based checkbox where default checkbox will be hidden and some colored bg div will be shown at the top of it. The problem is I need this as "checked" when page loading... Kindly help me on it. <!doctype html> <html> <head> <meta charset="UTF-8"> <title>Untitled Document</title> <style type="text/css"> body { font-family:Verdana, Geneva, sans-serif; font-size:12px;} .cmn-toggle { position: absolute; margin-left: -9999px; visibility: hidden; } .cmn-toggle + label {

Inside transparent arrow on the top

半城伤御伤魂 提交于 2020-01-06 21:02:48
问题 I would like to make a transparent arrow over an image. This triangle should be indented in a block and show the background image. Desired output: I used skewX() property that @web-tiki had explained here but I want it to display on the top of the border rather than on the bottom of image and have this issue: A fiddle demo of my code is available here Can anyone tell me why it's not working in my case? 回答1: As stated in the question, your case is a bit different from the example that was

Is there a way to prevent background of a parent element from showing up on the edge when both parent and child have a border radius?

被刻印的时光 ゝ 提交于 2020-01-06 20:13:04
问题 So let’s say we have a div inside another div; both the parent and child divs have the same border-radius, and the child’s width and height are 100% of the parent’s. If the parent has a background different from the child’s, a thin line of this background will be visible around the round corner of the child: This is what it looks like: Here is an example on CodePen: http://codepen.io/azangru/pen/MKdQmG And the code itself: HTML: <div class="dark-bg"> <div class="outer"> <div class="middle">

Is there a way to prevent background of a parent element from showing up on the edge when both parent and child have a border radius?

心不动则不痛 提交于 2020-01-06 20:11:04
问题 So let’s say we have a div inside another div; both the parent and child divs have the same border-radius, and the child’s width and height are 100% of the parent’s. If the parent has a background different from the child’s, a thin line of this background will be visible around the round corner of the child: This is what it looks like: Here is an example on CodePen: http://codepen.io/azangru/pen/MKdQmG And the code itself: HTML: <div class="dark-bg"> <div class="outer"> <div class="middle">

Scale image in flexbox to available width OR height

℡╲_俬逩灬. 提交于 2020-01-06 20:03:44
问题 I want an image on a webpage to grow/shrink to the available height or width of a flexbox and keep the original aspect ratio. I have used max-height:100%; max-width:100% on the image but that doesn't work. The page always fills the browser window without overflow. It has 3 rows: a title at the top with fixed height an article, with image and description side by side a footer at the bottom with fixed height The image should grow/shrink with the available height or width, depending on the

echo login error in different page, specific div

假装没事ソ 提交于 2020-01-06 19:15:24
问题 Delayed too long with this issue. I have a index.php including form and login.php handeling it. How do I post the errors in a specific div in index.php? Here is the Index.php container, no php code in idnex.php yet. <div id="container"> <section> <h1>ברוכים הבאים לאתר קופונים</h1> <h2>המקום בו תוכלו למצוא קופונים בסביבתכם</h2> <hr> </section> <section id="mainpage"> <p class="welcome"> אנא התחבר בכדי ליצור ולראות קופונים בקרבתך</br> <a href="php/register.php">הירשם לאתר</a> </p> <form action=

hide input type=“range” slider-thumb in webkit

大兔子大兔子 提交于 2020-01-06 18:41:20
问题 until safari 5.1 and maybe 6.0 it was possible to hide the slider-thumb via css input[type=range].onoff::-webkit-slider-thumb, input[type=range].onoff::-moz-slider-thumb, input[type=range].onoff::slider-thumb { -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important; height:20px; width:20px; background-color:transparent; } worked also in chrome, ff and opera. now with safari 6.1 and 6.1.1, firefox 25 this css is not hiding the slider-thumb anymore.

How to use cubic-bezier to change the speed of a keyframe animation?

拈花ヽ惹草 提交于 2020-01-06 18:12:33
问题 I am trying to create a @keyframe animation to bring a box up from the bottom of the screen and then have it bounce off the top of the body of the HTML document. The method that I used to do this doesn't allow you to change the speed during the duration of the animation which intern doesn't make it look very realistic ( See Code Below ). I have found an answer to my question the only problem is that I really don't understand how cubic-bezier is creating the animation. I would like to make