Slide In Panel

2,811 Kb

How do I make an slide in panel?

Simple jQuery Slide In Panel. What is a slide in panel? How do you make a slide in panel? This script and codes were developed by Fabio Mangolini on 15 August 2022, Monday.

Slide In Panel Previews

Slide In Panel - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Slide In Panel</title> <link rel="stylesheet" href="css/style.css">
<body> <!-- SlidePanel -->	<div id="slidein-panel">	<!-- SlidePanel Button Container -->	<div id="slidein-panel-container">	<a id="slidein-panel-btn" href="#"></a>	</div>	<!-- /SlidePanel Button Container -->	<!-- SlidePanel Content -->	<ul>	<li><a href="#">Link 1</a></li>	<li><a href="#">Link 2</a></li>	<li><a href="#">Link 3</a></li>	<li><a href="#">Link 4</a></li>	<li><a href="#">Link 5</a></li>	<li><a href="#">Link 6</a></li>	<li><a href="#">Link 7</a></li>	<li><a href="#">Link 8</a></li>	<li><a href="#">Link 9</a></li>	<li><a href="#">Link 10</a></li>	</ul>	<!-- /SlidePanel Content -->	</div>	<!-- /SlidePanel --> <script src=""></script>	<script type="text/javascript">	$(document).ready(function() {	$.SlidePanel({'openSymbol': '+', 'closeSymbol': 'x', 'panelWidth': 200});	});	</script> <script src="js/index.js"></script>

Slide In Panel - Script Codes CSS Codes

/************************************************* SlidePanel CSS @author Fabio Mangolini
body { background-color: #444444;
#slidein-panel { margin: 0; padding: 0; background-color: #333333;
#slidein-panel ul { margin: 0; padding: 0; list-style-type: none;
#slidein-panel ul li { background-color: #333333; display: block; margin-bottom: 1px; border-bottom: 1px solid #393939; border-top: 1px solid #4E4E4E;
#slidein-panel ul li a:link,
#slidein-panel ul li a:visited { display: block; text-decoration: none; color: #999; padding: 10px; text-shadow: 2px 2px 2px #999999; font-size: 12px;
#slidein-panel ul li:hover { background-color: #222222;
#slidein-panel-container { position: relative;
#slidein-panel-container a:link,
#slidein-panel-container a:visited { box-shadow: 2px 2px 2px #666666; border-top: 1px solid #4E4E4E; background-color: #333333; color: #FFFFFF; display: block; text-align: center; text-decoration: none; -webkit-transition-property: background color; -webkit-transition-duration: .5s; -webkit-transition-timing-function: ease; -moz-transition-property: background color; -moz-transition-duration: .5s; -moz-transition-timing-function: ease; -o-transition-property: background color; -o-transition-duration: .5s; -o-transition-timing-function: ease; -ms-transition-property: background color; -ms-transition-duration: .5s; -ms-transition-timing-function: ease; transition-property: background color; transition-duration: .5s; transition-timing-function: ease;
#slidein-panel-container a:hover { background-color: #666666;

Slide In Panel - Script Codes JS Codes

/************************************************* SlidePanel JS @author Fabio Mangolini
(function($) {	$.SlidePanel = function(options) {	//default status is closed	var status = 'close';	var settings = $.extend({ // These are the defaults. btnWidth: 50, btnHeight: 50, panelWidth: 150, panelHeight: $(window).height(), openSymbol: '+', closeSymbol: 'x' }, options );	//initialize the panel show/hide button $('#slidein-panel-btn').css({'width':settings.btnWidth+'px', 'height':settings.btnHeight+'px', 'line-height':settings.btnHeight+'px', 'position': 'absolute', 'top': 0, 'right':-(settings.btnWidth)+'px', 'text-align': 'center'}); $('#slidein-panel-btn').html(settings.openSymbol); //initialize the panel $('#slidein-panel').css({'width': settings.panelWidth, 'height': settings.panelHeight, 'position': 'absolute', 'top': 0, 'left': -(settings.panelWidth)}); //show and hide the panel depending on status	$('#slidein-panel-btn').click(	function() {	if(status == 'close') {	status = 'open';	$('#slidein-panel').animate({'left':0});	$('#slidein-panel-btn').animate({'right':-(settings.btnWidth/2)+'px', 'width':settings.btnWidth/2+'px', 'height':settings.btnHeight/2+'px', 'line-height': settings.btnHeight/2+'px'}, 'slow', function() {	$('#slidein-panel-btn').html(settings.closeSymbol);	});	}	else if(status == 'open') {	status = 'close';	$('#slidein-panel').animate({'left':-(settings.panelWidth)});	$('#slidein-panel-btn').animate({'right':-(settings.btnWidth)+'px', 'width':settings.btnWidth+'px', 'height':settings.btnHeight+'px', 'line-height': settings.btnHeight+'px'}, 'fast', function() {	$('#slidein-panel-btn').html(settings.openSymbol);	});	}	}	);	};
Slide In Panel - Script Codes
Slide In Panel - Script Codes
Home Page Home
Developer Fabio Mangolini
Username vikvarg
Uploaded August 15, 2022
Rating 3
Size 2,811 Kb
Views 34,408
Do you need developer help for Slide In Panel?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Fabio Mangolini (vikvarg) Script Codes
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!