sliding panels from offscreen - html
I have an idea where I have a brain in the middle of the page and if they click the left brain the content would slide right revealing a new page on the left and if they click on the right brain the content would scroll/slide left and you would see the page offscreen to the right.
I have a mock up of the full width here if you manually horizontally scroll. For the real thing I don't want the user to be able to scroll but the JS to handle that.
http://shawnwow.com/revised/
I am figuring I can just offset the site -100vw initially and if they choose left side then its offset by 0 and its the right it would be offset by -200vw. I can probably figure out the jQuery to change the class but having some issues getting the CSS to work.
Here is the code base if that helps.
https://github.com/shellwe/shawnwow/tree/2018-site-revision
Have a look at this fiddleJS - https://jsfiddle.net/darrendiscovr/79kh2cq1/. Snippet below shows the result but to keep within the character limit I minified the code. See the fiddleJS for unminified.
This could be a good starting point. I think your page would be much better served like this, using the main content with panels that slide left or right.
I have currently only had the time to overlap the panels, but you should easily be able to extend this by adding Jquery addClass to the main page content to push with the sliding panels.
Where credit is due, I used Codyhouse to replicate your page using one of their demonstrations of sliding panels. It is a great tool when looking for inspiration to JS and CSS transitions. I also recommend Codrops as a source of inspiration.
jQuery(document).ready(function($) {
$('.right-brain-btn').on('click', function(event) {
event.preventDefault();
$('.right-brain-panel').addClass('is-visible');
});
$('.right-brain-panel').on('click', function(event) {
if ($(event.target).is('.right-brain-panel') || $(event.target).is('.closebrain')) {
$('.right-brain-panel').removeClass('is-visible');
event.preventDefault();
}
});
$('.left-brain-btn').on('click', function(event) {
event.preventDefault();
$('.left-brain-panel').addClass('is-visible');
});
$('.left-brain-panel').on('click', function(event) {
if ($(event.target).is('.left-brain-panel') || $(event.target).is('.closebrain')) {
$('.left-brain-panel').removeClass('is-visible');
event.preventDefault();
}
});
});
body{margin: 0;}#center-page{height: 100vh; width: 100vw; display: flex; align-items: center;}#center-page>div{flex: 0 1 auto; width: 50%;}#center-page #left-side{background-color: rgba(255, 0, 0, 0.25); transition: background-color 1s;}#center-page #left-side:hover{background-color: rgba(255, 0, 0, 0.5); transition: background-color 1s;}#center-page #left-side #left-brain svg{margin-left: auto; margin-right: 1%;}#center-page #left-side #left-brain svg *{fill: red;}#center-page #right-side{background-color: rgba(0, 0, 255, 0.25); transition: background-color 1s;}#center-page #right-side:hover{background-color: rgba(0, 0, 255, 0.5); transition: background-color 1s;}#center-page #right-side #right-brain svg{margin-left: 1%; margin-right: auto;}#center-page #right-side #right-brain svg *{fill: blue;}#center-page .either-side:hover .brain-image svg{height: 85%; transition: height 1s;}#center-page .brain-image{height: 100vh; display: flex; align-items: center;}#center-page .brain-image svg{height: 75%; transition: height 1s;}#center-page .brain-image svg *{width: 100%; height: 100%;}.right-brain-panel{position: fixed; top: 0; left: 0; height: 100%; width: 100%; visibility: hidden; -webkit-transition: visibility 0s 0.6s; -moz-transition: visibility 0s 0.6s; transition: visibility 0s 0.6s;}.right-brain-panel::after{position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; cursor: pointer; -webkit-transition: background 0.3s 0.3s; -moz-transition: background 0.3s 0.3s; transition: background 0.3s 0.3s;}.right-brain-panel.is-visible{visibility: visible; -webkit-transition: visibility 0s 0s; -moz-transition: visibility 0s 0s; transition: visibility 0s 0s;}.right-brain-panel.is-visible::after{background: rgba(0, 0, 0, 0.6); -webkit-transition: background 0.3s 0s; -moz-transition: background 0.3s 0s; transition: background 0.3s 0s;}.left-brain-panel{position: fixed; top: 0; right: 0; height: 100%; width: 100%; visibility: hidden; -webkit-transition: visibility 0s 0.6s; -moz-transition: visibility 0s 0.6s; transition: visibility 0s 0.6s;}.left-brain-panel::after{position: absolute; top: 0; right: 0; width: 100%; height: 100%; background: transparent; cursor: pointer; -webkit-transition: background 0.3s 0.3s; -moz-transition: background 0.3s 0.3s; transition: background 0.3s 0.3s;}.left-brain-panel.is-visible{visibility: visible; -webkit-transition: visibility 0s 0s; -moz-transition: visibility 0s 0s; transition: visibility 0s 0s;}.left-brain-panel.is-visible::after{background: rgba(0, 0, 0, 0.6); -webkit-transition: background 0.3s 0s; -moz-transition: background 0.3s 0s; transition: background 0.3s 0s;}.brain-container{position: fixed; width: 100%; height: 100%; top: 0; background: #dbe2e9; z-index: 1; -webkit-transition-property: -webkit-transform; -moz-transition-property: -moz-transform; transition-property: transform; -webkit-transition-duration: 0.3s; -moz-transition-duration: 0.3s; transition-duration: 0.3s; -webkit-transition-delay: 0.3s; -moz-transition-delay: 0.3s; transition-delay: 0.3s;}.from-right .brain-container{right: 0; background: #c8c4fc; -webkit-transform: translate3d(100%, 0, 0); -moz-transform: translate3d(100%, 0, 0); -ms-transform: translate3d(100%, 0, 0); -o-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0);}.from-left .brain-container{left: 0; background: #f5c3c1; -webkit-transform: translate3d(-100%, 0, 0); -moz-transform: translate3d(-100%, 0, 0); -ms-transform: translate3d(-100%, 0, 0); -o-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0);}.is-visible .brain-container{-webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); -webkit-transition-delay: 0s; -moz-transition-delay: 0s; transition-delay: 0s;}.brain-content{position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 70px 5%; overflow: auto; -webkit-overflow-scrolling: touch;}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><div id="center-page"> <div id="left-side" class="either-side"> <div id="left-brain" class="brain-image"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 22.3 51.2" style="enable-background:new 0 0 22.3 51.2;" xml:space="preserve"><g><path d="M10.7,39.1c0.2,0.3,0.3,0.6,0.3,1c0,0.5-0.2,1-0.6,1.4c-0.2,0.2-0.2,0.5,0,0.7s0.5,0.2,0.7,0c0.6-0.6,0.9-1.3,0.9-2.1c0-0.5-0.1-1-0.4-1.5l0.3-0.2c0.2-0.2,0.2-0.5,0-0.7s-0.5-0.2-0.7,0l-0.2,0.2c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0.4-0.4,1-0.7,1.6-0.7s1.1,0.2,1.6,0.7c0.4,0.4,0.7,1,0.7,1.6c0,0.6-0.2,1.1-0.7,1.6c-0.2,0.2-0.2,0.5,0,0.7s0.5,0.2,0.7,0l0.2-0.3h0V40.9z M21.3,35.2L21,35c-0.6-0.6-1.5-0.9-2.3-0.9c-0.8,0-1.6,0.3-2.2,0.9c-1-0.1-1.8-0.6-2.2-1.5c0-0.1-0.1-0.2-0.1-0.3c0-0.1-0.1-0.2-0.1-0.3c0.7-0.2,1.2-0.9,1.2-1.7c0-0.3-0.2-0.5-0.5-0.5s-0.5,0.2-0.5,0.5c0,0.4-0.4,0.8-0.8,0.8c-0.4,0-0.8-0.4-0.8-0.8c0-0.3-0.2-0.5-0.5-0.5s-0.5,0.2-0.5,0.5c0,0.7,0.4,1.3,1,1.6L13,33c0.2,0.2,0.3,0.4,0.4,0.6c0,0.1,0.1,0.2,0.1,0.4c0,0.1,0.1,0.3,0.1,0.4c0,0.5-0.2,1-0.6,1.4s-0.9,0.6-1.4,0.6c-0.3,0-0.6-0.1-0.8-0.2c0.2-0.4,0.3-0.8,0.3-1.3c0-0.7-0.3-1.5-0.9-2.1c-0.2-0.2-0.4-0.4-0.7-0.5c1.4-0.2,2.5-1.4,2.5-2.9c0-1.1,0.9-1.9,1.9-1.9c1.1,0,1.9,0.9,1.9,1.9l0,0l0,0c0,1.7,1.4,3.2,3.2,3.2c0.8,0,1.6-0.3,2.2-0.9h0L21.3,35.2L21.3,35.2z M21.3,15.3L21.3,15.3c-0.2-0.2-0.4-0.3-0.6-0.5c0.2-0.1,0.4-0.3,0.5-0.4l0.1-0.1V15.3z"></path></g></svg> </div> </div><div id="right-side" class="either-side"> <div id="right-brain" class="brain-image"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 22.3 51.2" style="enable-background:new 0 0 22.3 51.2;" xml:space="preserve"><g><path d="M11.7,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.9c-0.8,0-1.7,0.3-2.3,0.9l-0.2,0.2L1.1,31.7L1.1,31.7z M1.1,14.4L1.1,14.4c0.2,0.2,0.4,0.3,0.6,0.5 c-0.2,0.1-0.4,0.3-0.6,0.5l0,0V14.4z"></path></g></svg> </div> </div></div><div class="right-brain-panel from-right"> <div class="brain-container"> <div class="brain-content"> <h1>This is the content of the right brain panel!!!!!</h1> <form action="https://formspree.io/shellwe#gmail.com" method="POST"> <input type="text" name="name"> <input type="email" name="_replyto"> <input type="submit" value="Send"> </form> Back </div></div></div><div class="left-brain-panel from-left"> <div class="brain-container"> <div class="brain-content"> <h1>This is the content of the left brain panel!!!!!</h1> <form action="https://formspree.io/shellwe#gmail.com" method="POST"> <input type="text" name="name"> <input type="email" name="_replyto"> <input type="submit" value="Send"> </form> Back </div></div></div>
Related
Is there a way to bypass overflow:hidden so an absolute positioned div could appear outside of it?
I have a menu, and on each <li> there's a class making it overflow: hidden; so I can achieve an animation on it. The thing is on one of these list-item's there's a sub-menu. This sub-menu is position: absolute;. The overflow is making it so you can't see it when it's being clicked on. If I remove overflow: hidden; the animation breaks. I'm not sure what to do. Unless there's a way to bypass, I'm thinking for my sub-menu to appear I'd have to scrap the animation entirely. Animation /* Wayra */ .wayra { overflow: hidden; -webkit-transition: border-color 0.3s, color 0.3s; transition: border-color 0.3s, color 0.3s; -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1); transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1); } /*.wayra.contact-item { overflow: visible; }*/ .wayra::before { content: ''; position: absolute; top: 0; left: 0; width: 150%; height: 100%; background: #281879; /*z-index: -1;*/ -webkit-transform: rotate3d(0, 0, 1, -45deg) translate3d(0, -3em, 0); transform: rotate3d(0, 0, 1, -45deg) translate3d(0, -3em, 0); -webkit-transform-origin: 0% 100%; transform-origin: 0% 100%; -webkit-transition: -webkit-transform 0.3s, opacity 0.3s, background-color 0.3s; transition: transform 0.3s, opacity 0.3s, background-color 0.3s; } .wayra a { -webkit-transition: all 0.2s; -moz-transition: all 0.2s; -ms-transition: all 0.2s; -o-transition: all 0.2s; transition: all 0.2s; } .wayra a:hover { color: #fff; } .wayra:hover::before { opacity: 1; background-color: #281879; -webkit-transform: rotate3d(0, 0, 1, 0deg); transform: rotate3d(0, 0, 1, 0deg); -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1); transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1); } Dropdown .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; font-size: 14px; text-align: left; list-style: none; background-color: #fff; -webkit-background-clip: padding-box; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0,0,0,.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175); box-shadow: 0 6px 12px rgba(0,0,0,.175); } Here's a link to a demo.
How about adding that effect to a instead of li? Let's translate: .wyara should get overflow:visible, .wyara > a should get overflow:hidden, .wayra::before becomes .wayra > a::before, .wayra:hover::before becomes .wyara:hover > a::before, .wayra.open > a::before Just tried it with Stylish, looks good.
Yes, you can override it when hovering over the element: .wayra:hover { overflow: visible; }
I strongly believe that is not possible. But there have to be other methods to do something like this. If you want to have an animation, you will have to rewrite your menu from scratch.
Animate placeholder text: Go to side and loose opacity
I'm creating a search box, with the placeholder text getting animated on focus. I've implemented that using css. When it gets focused, the placeholder text gets moved over all the way to the right while loosing opacity. When it looses focus, it gets moved its original place and the opacity is applied again. The problem is when you unfocus, (firs focus, then unfocus,) the searchbox gets a larger width. So if the parent div is set to overflow: auto, the x-axis scroll bar shows up. I can obviously do overflow-x: hidden, but that's sort of a hack. How can I get the same animation without having an overflow? JSFiddle #wrapper { width: 350px; background-color: brown; overflow: auto; } #search { margin: 0 .5rem; padding: .5rem; width: 95%; background-color: green; color: white; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.5); font-size: 1.15rem; transition: translateX 6s ease-in; margin-bottom: 15px; } #search:focus { outline: none; border: 1px solid rgba(255, 255, 255, 0.5); } #search:focus::-webkit-input-placeholder { -webkit-transform: translateX(70%); transform: translateX(70%); opacity: 0; } #search:focus::-webkit-input-placeholder:-moz-placeholder { -webkit-transform: translateX(70%); transform: translateX(70%); opacity: 0; } #search:focus::-webkit-input-placeholder::-moz-placeholder { -webkit-transform: translateX(70%); transform: translateX(70%); opacity: 0; } #search:focus::-webkit-input-placeholder:-ms-input-placeholder { -webkit-transform: translateX(70%); transform: translateX(70%); opacity: 0; } #search:focus::-webkit-input-placeholder::-ms-input-placeholder { -webkit-transform: translateX(70%); transform: translateX(70%); opacity: 0; } #search::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.8); -webkit-transition: ease-in 0.3s; transition: ease-in 0.3s; -webkit-transform-origin: 0 50%; transform-origin: 0 50%; } #search:-moz-placeholder { color: rgba(255, 255, 255, 0.8); -webkit-transition: ease-in 0.3s; transition: ease-in 0.3s; transform-origin: 0 50%; } #search::-moz-placeholder { color: rgba(255, 255, 255, 0.8); -webkit-transition: ease-in 0.3s; transition: ease-in 0.3s; transform-origin: 0 50%; } #search:-ms-input-placeholder { color: rgba(255, 255, 255, 0.8); -webkit-transition: ease-in 0.3s; transition: ease-in 0.3s; transform-origin: 0 50%; } #search::-ms-input-placeholder { color: rgba(255, 255, 255, 0.8); -webkit-transition: ease-in 0.3s; transition: ease-in 0.3s; transform-origin: 0 50%; } <div id="wrapper"> <input type="search" placeholder="Search Me" id="search"> </div>
UPDATED Plnker :focus::-webkit-input-placeholder { opacity: 0; transform: translate(70%); -webkit-transition: all 0.35s ease-in-out; transition: all 0.35s ease-in-out; }
Nested Elements don't trigger their hover states during/after transition
So here's my fiddle HTML <div class="container"> <div class="cardItem"> <h1>Mouse over me</h1> <p>Keep moving the mouse during transition</p> <p>Also have the mouse still over where the new paragraph will come before the transition finishes</p> <div class="cardHoverSide"> <p>See if my hover state still fires despite your <span>crazy</span> mouse movements</p> <div class="cardItem">NestedCard With Hover!</div> </div> </div> </div> CSS .container { overflow: hidden; height: 17em; width: auto; } .cardItem { position: relative; float: left; margin: 0 .35em; border: none; background: #444; color: #eee; width: 10em; height: 17em; -moz-transition: transform .3s cubic-bezier(0, 0.59, 0, 0.99); -o-transition: transform .3s cubic-bezier(0, 0.59, 0, 0.99); -webkit-transition: transform .3s cubic-bezier(0, 0.59, 0, 0.99); transition: transform .3s cubic-bezier(0, 0.59, 0, 0.99); } .cardHoverSide .cardItem { width: 60%; height: 50%; } .cardHoverSide .cardItem:hover { background: #eee; color: #222; transform: initial; } .cardItem:hover { -moz-transform: translate(0, -17em); -ms-transform: translate(0, -17em); -o-transform: translate(0, -17em); -webkit-transform: translate(0, -17em); transform: translate(0, -17em); -moz-transition: transform .3s cubic-bezier(1, .01, 1, .41); -o-transition: transform .3s cubic-bezier(1, .01, 1, .41); -webkit-transition: transform .3s cubic-bezier(1, .01, 1, .41); transition: transform .3s cubic-bezier(1, .01, 1, .41); } .cardHoverSide { border: none; background: #eee; color: #444; width: inherit; height: inherit; position: absolute; bottom: -17em; } .cardHoverSide p span:hover { color: red; } h1, h2, p { margin: .5em .3em; padding: 0; } I want the hover state of each nested element to be fired anytime the mouse is over that element. For instance when you are moving the mouse in the empty space of the nested card it doesn't seem to always trigger the hover state consistently. The nested span tag also has some issues... don't know if I've set up the CSS incorrectly/not with best practices - or if I need to be using JS to trigger that. Thanks for reading! All help is greatly appreciated. Edit Updated fiddle I'm specifically interested in when the mouse is stationary after initiating the transition - it seems on chrome the hover state does not fire on the child elements (so in the fiddle the p tag or nested panel don't change states). I've been able to consistently repeat this behavior on the updated fiddle.
Can't figure out what's wrong with my syntax
as you can see here http://jsfiddle.net/Ec8kN/ , my css circles are not working properly. Initially I only had one class .circle that I used several times to have multiple circles and it was working fine. I then decided to name each circle differently (i.e. circle-1, circle-2, circle-3) to get a better control with JS at a later stage. That's where the issues started. Now that I renamed them circle-1, circle-2, etc they won't display correctly anymore. What could be the issue? Many thanks <div class="circle-1 circlebackground circle_5px_marging"> <p>Créativité</p> <div class="innercircle"> <p>Le fdfd stimule la dfdsfd du fdfds en le dfdfd à réinventer sa dfdsf de la dfds dfs et donc les fdsfs qu’il peut y fdssf.</p> </div> </div> <div class="circle-2 circlebackground circle_5px_marging"> <p>Circle 2</p> <div class="innercircle"> <p>by Angela</p> </div> </div> <div class="circle-3 circlebackground"> <p>Circle 3</p> <div class="innercircle"> <p>by Angela</p> </div> </div> .circle_5px_marging { margin-right: 30px; } .circle-1, .circle-2, .circle-3 { position: relative; float: left; margin-bottom: 10px; width: 220px; height: 220px; border-radius: 50%; box-shadow: inset 0 0 0 0px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-transition: all 0.4s ease-in-out; -moz-transition: all 0.4s ease-in-out; -ms-transition: all 0.4s ease-in-out; -o-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; } .circlebackground { border:1px solid #2970AE; background: #FFF; } .innercircle { position: absolute; width: inherit; height: inherit; border-radius: 50%; background: #2970AE; opacity: 0; -webkit-transition: all 0.4s ease-in-out; -moz-transition: all 0.4s ease-in-out; -ms-transition: all 0.4s ease-in-out; -o-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; -webkit-transform: scale(0); -moz-transform: scale(0); -ms-transform: scale(0); -o-transform: scale(0); transform: scale(0); -webkit-backface-visibility: hidden; } .circle-1, .circle-2, .circle-3 p { position: absolute; top: 50%; left: 50%; margin: 0; color: #2970AE; letter-spacing: 1px; font-weight: 700; font-size: 14px; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } .innercircle p { position: absolute; top: 50%; left: 50%; margin: 0; color:#fff; text-align: center; font-weight: 300; font-size: 10px; opacity: 1; -webkit-transition: all 1s ease-in-out 0.4s; -moz-transition: all 1s ease-in-out 0.4s; -ms-transition: all 1s ease-in-out 0.4s; -o-transition: all 1s ease-in-out 0.4s; transition: all 1s ease-in-out 0.4s; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } .circle-1:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1); } .circle-1:hover .innercircle { opacity: 1; -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1); } .circle-1:hover .innercircle p { opacity: 1; } .clear { clear: both; }
Change .circle-1, .circle-2, .circle-3 p to .circle-1 p, .circle-2 p, .circle-3 p. It should work. As it is now, the properties set under this rule will apply to elements with class as circle-1, circle-2 and the p tag under all elements with class as circle-3. Fiddle Demo
You need to fix one selector: .circle-1 p, .circle-2 p, .circle-3 p Instead of: .circle-1, .circle-2, .circle-3 p Like I've written on the previous question of yours, the current selector is applied on .circle-1, .circle-2, and all paragraphs inside .circle-3. If you want it to be applied on every paragraph inside those classes you have to address p on each class separately. jsFiddle Demo
I can only advise you to restore the common circle class, then add a different id to each circle (e.g. id="circle1") and use the # CSS operator (e.g. #circle1) to customize each circle. That way you can tidy up your CSS code a little bit. For example, your first circle: <div id="circle-1" class="circle circlebackground circle_5px_marging"> <p>Créativité</p> <div class="innercircle"> <p>Le fdfd stimule la dfdsfd du fdfds en le dfdfd à réinventer sa dfdsf de la dfds dfs et donc les fdsfs qu’il peut y fdssf.</p> </div> Look here.
Going back to one css class for your circles is the way to go. If you need to distinguish them in Javascript then add an id to each circle. From W3 Schools: The class selector is used to specify a style for a group of elements. Unlike the id selector, the class selector is most often used on several elements. Furthermore accessing Ids in Javascript is easier and faster than accessing classes. Even though frameworks make it easy and browser are pretty fast nowadays.
I have found the problem. There is no syntax error but the Circle 1 you have gets overlapped by Circle-2 which you can see by hiding circle 2. So you just need to change the position of the circle 2.
CSS - Add space between elements except the last one
On this jsfiddle you can see that I have 6 circles: 3 on the first row and 3 on the second row. I'd like to add some space between them and was planning to use margin-right: 5px. The issue if I do this is that the last elements (circle 3 and circle 6) will also have this extra 5px to their right which I don't want (since there's no elements next to them). Is there a workaround to that? What I need is: (Circle 1) 5px space (Circle 2) 5px space (Circle 3) Thanks HTML: <div class="circle circlebackground"> <p>Circle 1</p> <div class="innercircle"> <p>by Angela</p> </div> </div> <div class="circle circlebackground"> <p>Circle 2</p> <div class="innercircle"> <p>by Angela</p> </div> </div> <div class="circle circlebackground"> <p>Circle 3</p> <div class="innercircle"> <p>by Angela</p> </div> </div> <div class="circle circlebackground clear"> <p>Circle 4</p> <div class="innercircle"> <p>by Angela</p> </div> </div> <div class="circle circlebackground"> <p>Circle 5</p> <div class="innercircle"> <p>by Angela</p> </div> </div> <div class="circle circlebackground"> <p>Circle 6</p> <div class="innercircle"> <p>by Angela</p> </div> </div> CSS: .circle { float: left; margin-bottom: 10px; width: 200px; height: 200px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-transition: all 0.4s ease-in-out; -moz-transition: all 0.4s ease-in-out; -o-transition: all 0.4s ease-in-out; -ms-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; } .circlebackground { background: #fff; border:1px solid #37629B; } .innercircle { position: absolute; background: red; width: inherit; height: inherit; border-radius: 50%; opacity: 0; -webkit-transition: all 0.4s ease-in-out; -moz-transition: all 0.4s ease-in-out; -o-transition: all 0.4s ease-in-out; -ms-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; -webkit-transform: scale(0); -moz-transform: scale(0); -o-transform: scale(0); -ms-transform: scale(0); transform: scale(0); -webkit-backface-visibility: hidden; } .circle p { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%); margin: 0; } .innercircle p { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%); margin: 0; opacity: 1; -webkit-transition: all 1s ease-in-out 0.4s; -moz-transition: all 1s ease-in-out 0.4s; -o-transition: all 1s ease-in-out 0.4s; -ms-transition: all 1s ease-in-out 0.4s; transition: all 1s ease-in-out 0.4s; } .circle:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1); } .circle:hover .innercircle { -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1); opacity: 1; } .circle:hover .innercircle p { opacity: 1; } .clear { clear: both; }
You can use this type of css if you really want to give margin-right. .circle { float: left; margin-bottom: 10px; width: 200px; height: 200px; border-radius: 50%; margin-left:5px; /*added*/ position: relative; box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-transition: all 0.4s ease-in-out; -moz-transition: all 0.4s ease-in-out; -o-transition: all 0.4s ease-in-out; -ms-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; } .circle:nth-of-type(3n+0) { margin-right:0px; } jsfiddle link
Make a class with margin-right: 5px and that add you in the circle where you want. Here the JSfiddle .circle_5px_marging { margin-right: 5px; }
add another class for your last div and there mention margin-right:0; MARK-UP:: <div class="all_circles"> </div> <div class="all_circles"> </div> <div class="all_circles last_circle"> </div> CSS:: .all_circles{ margin-right:5px; } .last_circle{ margin-right:0; } now in this example .all_circles is aplied to every div which have margin-right:5px; and change it for the last div by adding an extra class where margin-right:0; note:: in this case the additional style, i.e. .last_circle must be defined after defining .all_circles because here .last_circle will override the margin property of .all_circles