HTML Slideshow Generator
About this app
A simple tool to create HTML slideshow presentations
HTML Slideshow Generator Create Your Slideshow Add Slide Start Presentation
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>HTML Slideshow Generator</title>
<meta name="description" content="A simple tool to create HTML slideshow presentations">
<meta name="keywords" content="HTML, Slideshow, Generator">
<link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
background: #f8f9fa;
}
.slide-container {
display: none;
animation: fadein 2s;
}
.slide-container.active {
display: block;
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
h2 {
font-family: 'Indie Flower', cursive;
color: #6c757d;
}
button {
margin-top: 10px;
}
</style>
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
document.querySelector('#btn-add-slide').addEventListener('click', function() {
var title = document.querySelector('#input-title').value;
var content = document.querySelector('#input-content').value;
var slideContainer = document.createElement('div');
slideContainer.classList.add('slide-container');
var slideTitle = document.createElement('h2');
slideTitle.textContent = title;
var slideContent = document.createElement('p');
slideContent.textContent = content;
slideContainer.appendChild(slideTitle);
slideContainer.appendChild(slideContent);
document.querySelector('#main-container').appendChild(slideContainer);
document.querySelector('#input-title').value = '';
document.querySelector('#input-content').value = '';
});
document.querySelector('#btn-present').addEventListener('click', function() {
var slides = Array.from(document.querySelectorAll('.slide-container'));
slides.forEach((slide, index) => slide.classList.remove('active'));
slides[0].classList.add('active');
var currentIndex = 0;
setInterval(function() {
slides[currentIndex].classList.remove('active');
currentIndex = (currentIndex + 1) % slides.length;
slides[currentIndex].classList.add('active');
}, 3000);
});
});
} catch (error) {
throw error;
}
</script>
</head>
<body>
<div id="main-container" class="container">
<h1>Create Your Slideshow</h1>
<div>
<input type="text" id="input-title" placeholder="Slide title">
<textarea id="input-content" placeholder="Slide content"></textarea>
<button id="btn-add-slide">Add Slide</button>
<button id="btn-present">Start Presentation</button>
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!