Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div style="display: flex; flex-direction: column; width: 100vw; height: 100vh; align-items: center; justify-content: center">
	<h1>Navigation Bottom Tabs Bar - nuemorphism style - soft UI</h1>
	<h2>this bottom tabs bar was designed and developed to serve its purpose of usage for bloigencyبلوغجنسي </h2>
	<p>click on each button to witness the flow. the bar is invisible on large and medium screens (bootstrap 4 standard for media breakpoints) <br> please click search button to active . and click again to switch to input.</p>
</div>
<div class="tab-bar">
	<ul>
		<li class="active"><i class="fas fa-newspaper"></i><span>bloigency</span></li>
		<li><i class="fas fa-file-alt"></i><span>Articles</span></li>
		<li><i class="fas fa-tag"></i><span>Tags</span></li>
		<li class="search"><i class="fas fa-search"></i><span>Search</span></li>
	</ul>
</div>


              
            
!

CSS

              
                body{ 
	min-height: 100vh; 
	min-width: 100vw; 
	background-color: #FFF7FC;
	color: #2e1227;
	max-height: 100vh; 
	max-width: 100vw;
	height: 100vh; 
	width: 100vw;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-family: 'Tajawal', sans-serif;
	font-weight: 400;
}
h1{
	font-weight: 900;
	color: black;
}
h2{
	font-weight: 400;
}
hr{
	margin-top: 1rem;
	margin-bottom: 1rem;
	border-top: 1.6px solid white !important;
	border-bottom: 1.6px solid #2e122734!important;
	box-shadow: 0px -6px 16px #2e122734, 0px 6px 10px #fff;
}



.tab-bar{
	display: flex;
	position: fixed;
	height: 56px;
	min-width: 100vw;
	align-items: center;
	bottom: 0;
	box-shadow: 0px -2px 3px #2e122734;
/* 	background */
	background: rgba(247,239,244,1);
background: -moz-linear-gradient(top, rgba(247,239,244,1) 0%, rgba(247,239,244,1) 7%, rgba(255,255,255,1) 34%, rgba(247,239,244,1) 77%, rgba(247,239,244,1) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(247,239,244,1)), color-stop(7%, rgba(247,239,244,1)), color-stop(34%, rgba(255,255,255,1)), color-stop(77%, rgba(247,239,244,1)), color-stop(100%, rgba(247,239,244,1)));
background: -webkit-linear-gradient(top, rgba(247,239,244,1) 0%, rgba(247,239,244,1) 7%, rgba(255,255,255,1) 34%, rgba(247,239,244,1) 77%, rgba(247,239,244,1) 100%);
background: -o-linear-gradient(top, rgba(247,239,244,1) 0%, rgba(247,239,244,1) 7%, rgba(255,255,255,1) 34%, rgba(247,239,244,1) 77%, rgba(247,239,244,1) 100%);
background: -ms-linear-gradient(top, rgba(247,239,244,1) 0%, rgba(247,239,244,1) 7%, rgba(255,255,255,1) 34%, rgba(247,239,244,1) 77%, rgba(247,239,244,1) 100%);
background: linear-gradient(to bottom, rgba(247,239,244,1) 0%, rgba(247,239,244,1) 7%, rgba(255,255,255,1) 34%, rgba(247,239,244,1) 77%, rgba(247,239,244,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7eff4', endColorstr='#f7eff4', GradientType=0 );
}
.tab-bar ul{
	display: flex;
	flex-direction: row;
	list-style: none;
	padding: 0;
	margin: 0 auto;
	min-width: 95vw;
	align-items: center;
	justify-content: space-around;
	align-self: center;
	height: 100%;
}
.tab-bar ul li{
	background-color: rgb(247, 239, 244);
	height: 43px;
	width: 43px;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	padding: 0.5rem;
	flex-direction: row;
	justify-content: center;
	text-decoration: none;
	border-radius: 24px;
	transition: 1s;
	filter: drop-shadow(3.4px 3.4px 2px rgb(183, 177, 181)) drop-shadow(-3.4px -3.4px 3.4px white);
	-webkit-filter: drop-shadow(3.4px 3.4px 2px rgb(183, 177, 181)) drop-shadow(-3.4px -3.4px 3.4px white);
	box-shadow: inset 4.3px 4.3px 4px #fff;
}
.tab-bar ul li i{
	font-size: 16px; 
	margin: 0 0.5rem; 
	color: transparent;
	background-color: #2e1227cc;
  text-shadow: 2px 2px 4px #f7eff4aa;
  -webkit-background-clip: text;
     -moz-background-clip: text;
          background-clip: text;
	transition: 0.25s;
	transition-delay: 0.6s;
}
.tab-bar ul li span{
	display: none; 
	opacity: 0;
	color: #9900ff00;
	font-weight: 900;
	transition-delay: 1.8s;
	transition: 0.9s;
}
.tab-bar ul li.active{
	width: 43vw;
	filter: drop-shadow(0px 0px 0px rgb(183, 177, 181));
	-webkit-filter: drop-shadow(0px 0px 0px rgb(183, 177, 181));
	box-shadow: inset 4.3px 4.3px 7px rgb(183, 177, 181);
	border: 1px solid rgb(255, 255, 255);
	text-shadow: 1px 1px 1px white;
	transition: 1s;
}
.tab-bar ul li.active i{
	font-size: 24px; 
	background-color: #9900ff; 
	transition: 1s;
}
.tab-bar ul li:hover{
	border-color: #9900ff;
}
.tab-bar ul li.active span{
	display: flex; 
	opacity: 1;
	color: #9900ffff;
}
#tab_bar_search input{
	height: 43px;
	width: 43vw;
	border-radius: 24px;
	border: unset;
	filter: drop-shadow(0px 0px 0px rgb(183, 177, 181));
	-webkit-filter: drop-shadow(0px 0px 0px rgb(183, 177, 181));
	box-shadow: inset 4.3px 4.3px 7px rgb(183, 177, 181);
	border: 1px solid rgb(255, 255, 255);
	text-shadow: 1px 1px 1px white;
	transition: 1s;
	padding: 0 16px;
}
#tab_bar_search input:focus{
	outline-width: 0;
	outline: none;
	border: 1.6px solid #9900ff;
	color: #2e1227;
}

@media only screen and (min-width: 768px){
	.tab-bar{
		display: none;
	}
}
              
            
!

JS

              
                $(function(){
    var $tabCells = $('.tab-bar li');
		
		function change2Input($this){
			var $current_button = document.getElementById("tab_bar_search").innerHTML;

			$this.toggleClass("input");
			document.getElementById("tab_bar_search").innerHTML = '';
			document.getElementById("tab_bar_search").innerHTML = '<input type="text" placeholder="try search something">';
			$("#tab_bar_search input").focus();
			$(".search.active.input").css("padding", "0");
		}
	
    function marked() {        // define event handler
        var $this   = $(this),
						$prev		= $(".tab-bar li.active");

        if ( !($this.hasClass("active") )) {
          $prev.removeClass("active");
					$this.addClass("active");
					if($(".search").hasClass("input")){
						$(".search").removeClass("input");
						document.getElementById("tab_bar_search").innerHTML = '';
						document.getElementById("tab_bar_search").innerHTML = '<i class="fas fa-search"></i><span>Search</span>';
					} 
				} else {
					if( $this.hasClass("search") ){
						$(".tab-bar .search").attr("id", "tab_bar_search");
							change2Input($this);
					}
				}
    }

    $tabCells.click(marked);  // attach event handler
});

              
            
!
999px

Console