Flipboard

Developer
Size
3,268 Kb
Views
46,552

How do I make an flipboard?

Simulating the turning of a page in flipboard.. What is a flipboard? How do you make a flipboard? This script and codes were developed by Mnicpt on 30 July 2022, Saturday.

Flipboard Previews

Flipboard - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flipboard</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ * { box-sizing: border-box;
}
.pages { position: relative; margin: 15px; font-family: sans-serif; font-size: 12px; text-align: justify; left: 300px;
}
.pages.horizontal .page { position: absolute; background-color: white; display: inline-block; float: left; border: 1px solid #aaa; padding: 10px; width: 150px; height: 200px; transform-origin: top left; transform-style: preserve-3d; transition: transform 1s ease-out;
}
.pages.horizontal .page .front { backface-visibility: hidden; transform: rotateY(0deg);
}
.pages.horizontal .page .back { backface-visibility: hidden; transform: rotateY(180deg) translateZ(1px); transform-origin: top left; margin-left: 100%; width: 100%;
}
.pages.horizontal .page:hover { transform: rotateY(180deg);
}
.pages.horizontal .page.rotate { transform: rotateY(180deg);
}
.pages.vertical .page { position: relative; border: 1px solid #aaa; padding: 15px; width: 150px; height: 100px;
}
#turnBtn { margin-left: 50px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="pages horizontal"> <div class="page"> <div class="front">Page 1</div> <div class="back">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo magnam dignissimos necessitatibus doloribus, nesciunt nulla minus voluptatum temporibus natus quam, autem atque sapiente, suscipit adipisci quas minima mollitia modi cupiditate! </div> </div>
</div>
<div><input id="turnBtn" type="submit" value="Turn Page"/></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Flipboard - Script Codes CSS Codes

* { box-sizing: border-box;
}
.pages { position: relative; margin: 15px; font-family: sans-serif; font-size: 12px; text-align: justify; left: 300px;
}
.pages.horizontal .page { position: absolute; background-color: white; display: inline-block; float: left; border: 1px solid #aaa; padding: 10px; width: 150px; height: 200px; transform-origin: top left; transform-style: preserve-3d; transition: transform 1s ease-out;
}
.pages.horizontal .page .front { backface-visibility: hidden; transform: rotateY(0deg);
}
.pages.horizontal .page .back { backface-visibility: hidden; transform: rotateY(180deg) translateZ(1px); transform-origin: top left; margin-left: 100%; width: 100%;
}
.pages.horizontal .page:hover { transform: rotateY(180deg);
}
.pages.horizontal .page.rotate { transform: rotateY(180deg);
}
.pages.vertical .page { position: relative; border: 1px solid #aaa; padding: 15px; width: 150px; height: 100px;
}
#turnBtn { margin-left: 50px;
}

Flipboard - Script Codes JS Codes

$('#turnBtn').on('click', function(){ $('.page').toggleClass('rotate');
});
Flipboard - Script Codes
Flipboard - Script Codes
Home Page Home
Developer Mnicpt
Username mnicpt
Uploaded July 30, 2022
Rating 3
Size 3,268 Kb
Views 46,552
Do you need developer help for Flipboard?

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!

Mnicpt (mnicpt) Script Codes
Create amazing web content 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!