Give it a class.
Style it the way you want but these settings are needed:
margin-top: auto
width and height: auto
position:absolute
top 50%.
Select Transform and the property of Translate.
Style it:
Move up: –50%
.w-col { float: right !important; }
input, textarea {
-webkit-appearance: none;
border-radius: 0; }
.w-input::-webkit-input-placeholder { /* WebKit browsers */ color: #6f7787;}
.w-input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #6f7787; opacity: 1;}
.w-input::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #6f7787; opacity: 1;}
.w-input:-ms-input-placeholder { /* Internet Explorer 10+ */ color: #6f7787;}
Style everything the way you want it. Be sure to tick the box No Bullets in the settings area.
Add a background, position it where you want it to be and add some padding to prevent the content from overflowing the background image.
Go to Mapbuildr and create a new map. Do not close the pop-up Your map code.
In the designer give it the desired styles.
Click Get Code. In the code window pop-up, remove <div id='map'></div> and remove Copy Close.
If you want to save your map, you have to log in or sign up. It’s free.
*Paste all styles here
An error message will be shown when pasting the code, so a document Write-in needs to be inserted instead.
[ORIGINAL CODE]
script src=https://maps.googleapis.com/maps/api/js?key=AIzaSyDGh_pfKG3qM_zNbOWqolFkGsuV9DoCXIM&sensor&sensor=false&extension=.js
[REPLACE ORIGINAL CODE WITH]
<script language="JavaScript”>
<!--document.writeln("<script src='https://maps.googleapis.com/maps/api/js?key=AIzaSyA4y1ZR_U6_ZfDdPpH1eBV5zAWGzczmaus&sensor&sensor=false&extension=.js'></script>”);
//-->
</script>
Replace API key, where key= starts: https://maps.googleapis.com/maps/api/js?key=AIzaSyDdrBtUru0fUEDbCI5Ag_Jy7um4j8iHWt8&sensor=false&extension=.js
Classes must be UNIQUE and NOT NESTED.
Give it a class of Modal Background.
Give it a transparent black background.
To make the modal stay in the same place when scrolling on the page, style it:
position:fixed (full
z-index: 1 (or a value high enough to cover all contents including navbar)
Place the div inside the section of it and give it a a class of Modal Window.
To give width and center it, style it:
margin-left: auto
margin-right: auto
width: 70%
Drop any elements the modal will consist of.
Add a Link Block with an “X”- icon or a "Close" text link.
Give that link the class Modal Close Link and style it any way you want.
Make it:
display: none
Add a button to act as a trigger to open the modal and call it Modal Open Button.
You can tweak the width of the Modal Window so it's not so squeezed in on mobile devices.
To allow users to actually scroll down to see all of the content inside the modal set the Modal Background to:
overflow: scroll
You can also add interactions to the Modal Window for different effects when the modal opens.
You can choose wether you want your modal to slide in or fade in. There's also a few tweaked versions where the modal is visible from the start when loading up a webpage, disabling body scroll when modal is visible and preventing the webpage to scroll to top on mobile devices when the modal opens.
$(document).ready(function() {
$('.modal-open-button').click(function() {
$('.modal-background').fadeIn();
});
$('.modal-close-link').click(function() {
$('.modal-background').fadeOut();
});
});
$(document).ready(function() {
$('.modal-open-button').click(function() {
$('.modal-background').slideDown("slow");
});
$('.modal-close-link').click(function() {
$('.modal-background').slideUp("slow");
});
});
$(document).ready(function() {
$('.modal-background').fadeIn();
$('.modal-close-link').click(function() {
$('.modal-background').fadeOut();
});
});
$(document).ready(function() {
$('.modal-background').fadeIn();
$('.modal-close-link').click(function() {
$('.modal-background').fadeOut();
});
});
$(document).ready(function() {
$('.modal-open-button').click(function() {
$('.modal-background').fadeIn();
$('body').css('overflow', 'hidden');
});
$('.modal-close-link').click(function() {
$('.modal-background').fadeOut();
$('body').css('overflow', 'auto');
});
});
Classes must be UNIQUE and NOT NESTED.
Give it a class of Main Sidebar.
Style it as you want, but in this particular case:
width: 20%
height: 100%
position: fixed (right)
z-index: 1 (or a value high enough to cover all contents including navbar)
Place the Button inside the Main Sidebar.
Style it as you want, but in this particular it is horizontally centered on the modal:
position: absolute
top: 50%
left: *a value making it sit on the outer border of the Main Sidebar Div
Give it a class of Main Page Sidebar Wrapper and place it inside the Main Page Sidebar.
Style it as you want, but this setting is needed:
height: 100%
Give it a class of Main Page Sidebar Content and place it inside the Main Page Sidebar Content Wrapper.
Place all contents in this Div and style it as you want but this setting is needed:
height: 100%
Select Main Page Sidebar and add an interaction.
Select Initial Appearance and style it:
move right: 100%
display: block
Select the Button that will trigger the sliding and add an interaction.
Select trigger of Click and style it:
move: to origin
display: block
move: right 100%
display: block
Give it a class of Page Loader Section.
Style it the way you want but these settings are needed:
position:fixed
width: 100%
height: 100%
z-index: 10000
Give it a class of Page Loader Contents.
Style it as you want but these settings need to be set:
display: inline-block
position: absolute
top: 50%
transform up: –50%
Add the elements of your choice like a heading and an animated GIF file.
Add an interaction. Select the trigger Load.
Select Wait for assets to load.
Add these settings:
opacity: 0% and 1000ms transition
display: none
Give it a class.
Style it the way you want but these settings are needed:
overflow: hidden
position: relative
Style it:
height: your choice
width: 130%
position: absolute (bottom or top - your choice)
transform --> rotate: angle of your choice.
Change the numeric positioning values to fit the angled div in the section. Use percentage values.