Comments (1)
Not really, your best bet is to hide the iframe during transitions.
What kind of iframe is it? Youtube? Vimeo? I'm using the following to put a background image on youtube videos:
.video-container {
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
position: relative;
background: #000;
}
.video-container iframe,
.video-container span {
position: absolute;
width: 100%;
left: 0;
border: 0;
top: 0;
}
.video-container iframe {
top: 0;
height: 100%;
}
.video-container span {
background: #000 center no-repeat;
background-size: cover;
bottom:35px;
}
/**
* Turn of iframes.
*/
.bb-page .video-container iframe,
.bb-page ~ .bb-item .video-container iframe {
display: none;
}
<div id="bookblock" class="bb-bookblock text-justify">
<div class="bb-item">ads</div>
<div class="bb-item">
<div class="video-container">
<div class="video-container">
<span style="background-image:url(http://img.youtube.com/vi/jtM1hyAJdaI/hqdefault.jpg)"></span>
<iframe src="http://www.youtube.com/embed/jtM1hyAJdaI"
width="560" height="315" allowfullscreen></iframe>
</div>
</div>
</div>
<div class="bb-item">asdf</div>
</div>
<div class="bb-nav">
<br>
<div class="btn-group">
<button class="btn btn-default first">«</button>
<button class="btn btn-default prev">←</button>
<button class="btn btn-default next">→</button>
<button class="btn btn-default last">»</button>
</div>
<br>
</div>
from bookblock.
Related Issues (20)
- Autoplay
- bb-page for displaying the effect cannot be removed automatically HOT 3
- Dynamic elements
- horizontal oriented .bb-bookblock size in percentages + self.end HOT 1
- How to increase speed?
- How do I get it to not lift slightly when we can't go further?
- Autoplay book stops flipping when tab becomes inactive HOT 1
- Load on flip
- How to link in the content to another item
- Autowrap text...
- table of contents
- Hide Left Arrow From 1st Page and Right Arrow from Last Page HOT 1
- Help integrating with owl.carousel.js
- Page flip/turn on scroll up
- Plugin not flipping after click HOT 4
- Flipping does't works with vue 2.6.10
- Background color only loads after page flip HOT 1
- Working on fork
- hide arrow in case of no previous page or no next page HOT 1
- It does not work under https protocol HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookblock.