Breadcrumb libraries (html5/css) [closed] - html

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am looking for a library which has some custom breadcrumbs as the following:
Any idea what I could use to have a result looking as my image (ish).

You can create fast in css like this:
No need library, just adapt my snippet for you with your styles and icons
$('.breadcrumb__item').click(function(){
$('.breadcrumb__item').removeClass('active');
$(this).addClass('active');
});
.breadcrumb{
width: 80%;
margin: 20px auto;
padding: 0;
position: relative;
list-style: none;
display: flex;
justify-content: space-between;
overflow-x: hidden;
}
.breadcrumb::after{
position: absolute;
height: 2px;
width: 100%;
background: blue;
left: 0;
top: 50%;
transform: translateY(-50%);
content:'';
}
.breadcrumb__item{
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
border: 2px solid blue;
border-radius: 50%;
display: block;
background: grey;
position: relative;
z-index: 1;
cursor: pointer;
}
.breadcrumb__item span{
display: block;
height: 100%;
width: 100%;
position: relative;
z-index: 3;
background: blue;
border-radius: 50%;
}
.breadcrumb__item.active span{
background: #fff;
}
.breadcrumb__item.active ~ .breadcrumb__item{
border-color: grey;
}
.breadcrumb__item.active ~ .breadcrumb__item span{
display: none;
}
.breadcrumb__item.active::after{
position: absolute;
height: 2px;
width: 999999%;
background: grey;
left: 0;
top: 50%;
transform: translateY(-50%);
content:'';
z-index: 2;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<ul class="breadcrumb">
<li class="breadcrumb__item">
<span>1</span>
</li>
<li class="breadcrumb__item active">
<span>2</span>
</li>
<li class="breadcrumb__item">
<span>3</span>
</li>
<li class="breadcrumb__item">
<span>4</span>
</li>
</ul>

Related

How to make advance shape of CSS? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I wonder that if someone could provide or suggest me how to make a css style better approach than mine?
This is what expected shape :
What is done so far :
.labelModel {
display: block;
position: absolute;
z-index: 100;
border: 2px solid #ccc;
background-color: #404040;
cursor: pointer;
border-radius: 10px;
padding: 10px;
width: 12rem;
height: 12rem;
color: white;
margin-left: 100px;
}
.line-infocard {
position: relative;
top: 200px;
width: 150px;
height: 5px;
z-index: 99;
border: 2px solid #ccc;
background-color: #404040;
transform: rotate(-45deg);
}
<div>
<div class="line-infocard"></div>
<div class="labelModel">info :</div>
</div>
.labelModel {
display: block;
position: absolute;
z-index: 100;
border: 2px solid #ccc;
cursor: pointer;
width: 12rem;
height: 12rem;
margin-left: 100px;
}
.labelBox{
background-color: #404040;
width:89%;
height:89%;
padding: 10px;
transform: rotate(1deg);
color:orange;
}
.line-infocard {
position: relative;
top: 200px;
right:50px;
width: 150px;
height: 2px;
z-index: 99;
background-color: #404040;
transform: rotate(-60deg);
}
.line-infocard::after{
content:'';
width:2px;
height:40px;
background-color:black;
top: 88%;
right: -11px;
position: absolute;
transform: rotate(
-28deg);
}
<div>
<div class="line-infocard"></div>
<div class="labelModel">
<div class="labelBox">
info :
</div>
</div>
</div>

How could I create a transition effect similar to the "start voting" button on this website? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I would like to create a transition effect on hover that is similar to the large "start voting" button on this website but, while I am familiar with css transition effects, I dont know how to create that one in particular. Thank you for taking the time to read this.
You can use a background-size transition:
a {
position: relative;
display: inline-block;
padding: 12px 80px;
border: 2px solid #BDAA67;
color: white;
font-size: 30px;
text-decoration: none;
background-color: black;
background-image: linear-gradient(#BDAA67, #BDAA67);
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: 0% 0%;
transition: background-size .3s, color .3s;
}
a:hover {
background-size: 100% 100%;
color: #000;
}
<a href="#" class="button">
CLICK ME!
</a>
{content: "";
background-color: #bdaa67;
height: 0%;
width: 50%;
position: absolute;
left: 25%;
transition: all .15s ease-in-out;
top: 48%;
z-index: -1;}
Try this
Add the following lines of code to your HTML,
<button class="custom-btn">Start now</button>
Add the following lines of code to your custom.css. This will give the exact style on hover for the button. You can minimise the code if you are willing to use bootstrap. Here we have custom styled the button from scratch.
.custom-btn {
font-size: 25px;
padding: 32px 105px;
text-shadow: none;
border: 2px solid #000;
background: #000;
color: #fff;
font-weight: bold;
text-transform: uppercase;
position: relative;
z-index: 1;
transition: all .33s ease-in-out;
}
.custom-btn:hover {
border: 2px solid #bdaa67;
color: #000;
}
.custom-btn::before {
content: "";
background-color: #bdaa67;
height: 0%;
width: 50%;
position: absolute;
left: 25%;
transition: all .15s ease-in-out;
top: 48%;
z-index: -1;
}
.custom-btn:hover::before {
height: 100%;
width: 100%;
left: 0;
top: 0;
}
<body>
<button> START VOTING </button>
</body>
body {
margin: 0;
padding: 0;
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background: red;
}
button {
position: absolute;
padding: 40px 120px;
font-weight: bold;
border: 0;
color: #fff;
font-size: 2em;
text-transform: uppercase;
background: #000;
z-index: 1;
}
button::before {
content:"";
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: #bdaa67;
transform: scale(0);
transition: 0.3s;
z-index: -1;
}
button:hover:before {
transform: scale(1);
}
button:hover {
border: 3px solid #bdaa67;
color: #000;
}

make footer with two color and s curve [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm having a problem to make s curve in my footer
anyone can help me to make a footer like this:
according to css skew element and get inner rounded border top this could be a solution for you:
.footer {
height: 100px;
position: relative;
overflow: hidden;
background-color: green;
}
.content {
position: absolute;
top: 40%;
left: 5px;
}
.footer:before,
.footer:after {
content: "";
vertical-align: top;
display: inline-block;
transform-origin: top right;
transform: skew(-40deg);
}
.footer:before {
height: 100%;
width: 50%;
border-radius: 0 0 40px 0;
background: lightgrey;
}
.footer:after {
height: 40px;
width: 40px;
margin-left: -1px;
background: radial-gradient(circle at bottom right, transparent 68%, lightgrey 70%);
}
<div class="footer"><div class="content">text goes here</div></div>
Try this
:root {
--bg-color: #12633a;
--fg-color: #eaeaea;
--radius: 80px;
}
.container {
display: flex;
}
.left {
background: var(--fg-color);
height: 250px;
flex-grow: 1;
}
.right {
background: var(--bg-color);
height: 250px;
flex-grow: 1;
}
.clip {
width: 300px;
overflow: hidden;
}
.d {
display: flex;
background: var(--fg-color);
justify-content:center;
width: 500px;
margin-left:-100px;
}
.d1 {
background: var(--fg-color);
height: 250px;
width: 250px;
border-bottom-right-radius: calc(var(--radius));
transform: skewX(-30deg);
}
.d2 {
background: var(--bg-color);
}
.d3 {
background: var(--bg-color);
height: 250px;
width: 250px;
border-top-left-radius: var(--radius);
transform: skewX(-30deg);
}
<div class="container">
<div class="left"></div>
<div class="clip">
<div class="d">
<div class="d2"><div class="d1"></div></div>
<div class="d3"></div>
</div>
</div>
<div class="right"></div>
</div>

how do i place items in css3? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i'm coding a web by using only html and css and i'm having a problem with placing div tags in css
this is the output i want to make : Image
the problem is i cant place these items in their place in the image.
this is my code :
body{
background-color: red;
}
#container{
background-image: url(http://uupload.ir/files/16md_background.jpg);
width: 1366px;
height: 768px;
margin: auto;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
border-radius: 2px;
}
#header{
background-image: url(http://uupload.ir/files/8sr2_header.png);
width:1366px;
height:77px;
position: absolute;
top: 22px;
left: 170px;
}
#webdesign{
background-image: url(http://uupload.ir/files/k11n_untitled-1.png);
width: 308px;
height: 308px;
}
#bannerdeisgn{
background-image: url(http://uupload.ir/files/k11n_untitled-1.png);
width: 308px;
height: 308px;
}
#logodesign{
background-image: url(http://uupload.ir/files/k11n_untitled-1.png);
width: 308px;
height: 308px;
}
#carddesign{
background-image: url(http://uupload.ir/files/k11n_untitled-1.png);
width: 308px;
height: 308px;
}
#nav li{
list-style-type: none;
position: absolute;
}
#home{
background-image: url(http://uupload.ir/files/orek_home.png);
width:32px;
height:35px;
position: absolute;
right: 100px;
}
#home {
display: inline-block;
vertical-align: middle;
-webkit-transform: translateZ(0);
transform: translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-moz-osx-font-smoothing: grayscale;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-property: box-shadow, transform;
transition-property: box-shadow, transform;
}
#home:hover, #home:focus, #home:active {
box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5);
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
#footer{
background-image: url(http://uupload.ir/files/ywc_footer.png);
width: 1366px;
height: 77px;
float: left;
position: absolute;
top: 712px;
left: 170px;
}
<html>
<head>
<title>test</title>
<link rel="stylesheet" type="text/css" href="style.css">
<!---\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////-->
<!---\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////-->
</head>
<body>
<div id="container"></div>
<div id="header"></div>
<div id="home"></div>
<div id="bg"></div>
<ul id="nav">
<li id="bannerdeisgn"></li>
<li id="logodesign"></li>
<li id="carddesign"></li>
<li id="webdesign"></li>
</ul>
<div id="footer"></div>
</div>
</body>
</html>
Add display:inline-block to li and remove position: absolute
#nav li{
list-style-type: none;
display: inline-block;
background: #000;
border-radius:200px
}
Demo
Though it is not advisable to help in blind way, here it is Demo 2 Updated

How to make an expanding circle with button [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to make first circle can expanding as big as the second circle in the background with button, do anyone know how ?
Well one way to do it would be to use java script to add and remove classes which hold the properties of your circle.
You could create a css class that holds one set of properties that is then called by javascript when a button is clicked.
.circle_b {
height: 200px;
width: 200px;
border-radius: 50%;
background: #ddd;
position: relative;
}
.circle_s {
height: 80px;
width: 80px;
border-radius: 50%;
background: #ddd;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
border: 0;
background: coral;
cursor: pointer;
transition: all 0.2s ease;
}
.sizePlus{
height: 200px;
width: 200px;
transition: all 0.2s ease;
}
button{
display: block;
position: absolute;
width: 200px;
height: 100px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<body>
<script type="text/javascript">
$(document).click(function (e) {
$el = $(e.target);
if ($el.hasClass('clickme')) {
$(".circle_s").toggleClass('sizePlus');
} else {
$(".circle_s").removeClass('sizePlus');
}
});
</script>
<div class="circle_b">
<button class="circle_s clickme">
CLICK ME
</button>
</div>
</body>
DEMO
Animation is on hover of button
HTML
<div class="circle_b">
<button class="circle_s">
HOVER ME!
</button>
</div>
CSS
.circle_b {
height: 200px;
width: 200px;
border-radius: 50%;
background: #ddd;
position: relative;
}
.circle_s {
height: 80px;
width: 80px;
border-radius: 50%;
background: #ddd;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
border: 0;
background: coral;
cursor: pointer;
transition: all 0.2s ease;
}
.circle_s:hover {
height: 200px;
width: 200px;
transition: all 0.2s ease;
}