css-transitions

How to make a bone shaped button

本小妞迷上赌 提交于 2021-02-06 15:13:19
问题 I am currently experimenting on a button for my website. I want it to look like an average button but, once you hover it, it becomes a bone (my website is about dogs). So I used an already existing codepen project and I ended up with this: :root { --bg: #1a1e24; --color: #eee; --font: Montserrat, Roboto, Helvetica, Arial, sans-serif; } .wrapper { padding: 1.5rem 0; filter: url('#goo'); } .bone { display: inline-block; text-align: center; background: var(--color); color: var(--bg); font-weight

How to make a bone shaped button

旧城冷巷雨未停 提交于 2021-02-06 15:10:24
问题 I am currently experimenting on a button for my website. I want it to look like an average button but, once you hover it, it becomes a bone (my website is about dogs). So I used an already existing codepen project and I ended up with this: :root { --bg: #1a1e24; --color: #eee; --font: Montserrat, Roboto, Helvetica, Arial, sans-serif; } .wrapper { padding: 1.5rem 0; filter: url('#goo'); } .bone { display: inline-block; text-align: center; background: var(--color); color: var(--bg); font-weight

How to make a bone shaped button

心已入冬 提交于 2021-02-06 15:06:14
问题 I am currently experimenting on a button for my website. I want it to look like an average button but, once you hover it, it becomes a bone (my website is about dogs). So I used an already existing codepen project and I ended up with this: :root { --bg: #1a1e24; --color: #eee; --font: Montserrat, Roboto, Helvetica, Arial, sans-serif; } .wrapper { padding: 1.5rem 0; filter: url('#goo'); } .bone { display: inline-block; text-align: center; background: var(--color); color: var(--bg); font-weight

transition between background color and background image CSS3

落爺英雄遲暮 提交于 2021-02-05 05:30:08
问题 I've got a set of divs and I want each of them to have different background color and while on hover to transition into a background image of chosen url. I have so far managed to find code for smooth color -> image transition but that requires an actual img code in HTML and I need those divs as I will be putting text in them. Is there any chance to have a smooth 0.5s or less transition from background color to background url performed through CSS? If you look at http://loopedmag.com you can

transition between background color and background image CSS3

老子叫甜甜 提交于 2021-02-05 05:29:48
问题 I've got a set of divs and I want each of them to have different background color and while on hover to transition into a background image of chosen url. I have so far managed to find code for smooth color -> image transition but that requires an actual img code in HTML and I need those divs as I will be putting text in them. Is there any chance to have a smooth 0.5s or less transition from background color to background url performed through CSS? If you look at http://loopedmag.com you can

transition between background color and background image CSS3

瘦欲@ 提交于 2021-02-05 05:29:11
问题 I've got a set of divs and I want each of them to have different background color and while on hover to transition into a background image of chosen url. I have so far managed to find code for smooth color -> image transition but that requires an actual img code in HTML and I need those divs as I will be putting text in them. Is there any chance to have a smooth 0.5s or less transition from background color to background url performed through CSS? If you look at http://loopedmag.com you can

Translate x and y with a different timing functions?

£可爱£侵袭症+ 提交于 2021-02-04 18:39:06
问题 Currently I'm using the following code to translate both x and y at the same speed: -webkit-transition:all 180ms ease-out; I would like to translate the X axis slower than the Y. Is it possible to specify something similar to: -webkit-transition:translateX 180ms ease-out; -webkit-transition:translateY 50ms ease-out; Thanks in advance! 回答1: Sad but true: you can't use different timings for different parts of transform since it's now only one property and cannot be spliced. The only things you

How to fade out Django success messages using Javascript or CSS?

删除回忆录丶 提交于 2021-01-28 19:28:58
问题 I am trying to fade out Django success messages using a small Javascript script but cannot seem to get it to work. This is in my base.html : {% if messages %} {% for message in messages %} <div class="alert alert-{{ message.tags }}"> {{ message }} </div> {% endfor %} {% endif %} <script> var m = document.getElementsByClassName("alert"); setTimeout(function(){ m.style.display = "none"; }, 3000); </script> 回答1: Django is only rendering your template, and return from a server side a HTML file

CSSTransition transition-enter-active event not working as expected

大憨熊 提交于 2021-01-28 12:42:41
问题 I'm new to JS, React and CSSTransition so please excuse me if any of this is obvious. I'm trying to enter some basic enter/exit animations for a div (ideally slide in from right and slide out to left, but just trying to use opacity for now to keep it simple). While I can get the page to render, I can't get and of the following CSS events to work: *-transition-enter, *-transition-enter-active, *-transition-exit, *-transition-exit-active However, whilst playing around with it I have managed to

Transform Scale on hover not scaling

杀马特。学长 韩版系。学妹 提交于 2021-01-28 08:22:02
问题 I want the .servNavItemWrap img to transform scale when servNavItemWrap is being hovered. What I am doing now it not working. Does anyone see what I am doing wrong? .servNavItemWrap { display: inline-block; vertical-align: top; width: 25%; margin-bottom: 50px; text-align: center; cursor: pointer; } .servNavItemWrap img { width: 75px; height: 75px; -webkit-transition: all 0.25s; transition: all 0.25s; } .servNavItemWrap:hover .servNavItemWrap img { -webkit-transition: all 0.25s; transition: