Skip to main content
New Participant
January 19, 2015
Question

Scrollable Frame solution for EPUB Fixed Layout

  • January 19, 2015
  • 13 replies
  • 27114 views

Hi,

I have found a solution (or, rather a hack) which allows us to create scrolling frames for EPUB Fixed Layouts.

You can find the exported EPUB, as well as my InDesign file on my Dropbox: EPUB scroll.

This solution has some weak points and has only been tested in iBooks on an iPad with iOS 8, but here's how it works:

  1. Create two text frames (one as big as your text requires, and one which will be the container [tip: make the container a bit wider than the text frame])
  2. Cut the big text frame, select the smaller container frame, and Edit->Paste into
  3. Right click on the container, select Object Export Options, choose EPUB and HTML and enter "subchapter" as epub:type:
  4. Open a text editor and create a new CSS file. For CSS code, see below
  5. Export as Fixed layout EPUB. In the export dialog box, select the CSS tab and add the previously created CSS file
  6. Done!

CSS code:

div[*|type = "subchapter"] {

position: relative;

}

div[*|type = "subchapter"] > div {

overflow: auto;

}

As you see, steps 1 and 2 are essentialy the same as for creating a scrollable frame folio overlay.

It’s not perfect, and this solution is just a proof-of-concept, but it should get you going.

An obvious problem is that we use basic HTML scrollbar, which is not being displayed in e-book readers such as iBooks on the iPad. Hence, the user has now idea how long the scrollable content stretches. This could probably be solved with a more complex, JS-based solution.

Also, the gradient feather at the bottom (which is intended to create a "fade-out effect) seems not to export well. This one should be easy to solve, placing another rectangle with a gradient in it. But I’m not sure if transparency exports well, and haven’t tested it.

Feel free to use, and improve, this hack!

Thanks,

/Jacob

This topic has been closed for replies.

13 replies

New Participant
September 20, 2016

Hi Jacob, this does work really well but can't get it to work horizontally, is there an idiot's guide somewhere to do this? Do I need to change the coding?

BobLevine
Braniac
September 20, 2016
New Participant
September 21, 2016

Thanks bob, I signed up for the newsletter but nothing happened?

cinziamarotta
Participating Frequently
December 20, 2015

Great! Thank you so much.

New Participant
August 17, 2015

Thank you so much, for this. Sounds really-really cool.

But can you please tell me what the text editor is and how to open it? I stuck at the fourth step

Very very grateful,

Elena

Sandee Cohen
Braniac
April 11, 2015

I got the gradient feather to work fine as long as it's white with a gradient feather.

Sandee Cohen
Braniac
April 11, 2015

Not only can you make a scrolling frame, you can create workable hyperlinks in the frame

March 16, 2015

Awesome! Thanks.

New Participant
March 7, 2015

HI THERE,

THIS WORKS NOW WITH THE LATEST IN DESIGN EDITION, BUT WHEN I EXPORT TO EPUB FOR ANDROID THE INTERACTIVITY SEEMS TO BE LOST - IT WORKS FINE WHEN I PREVIEW ON DESKTOP THOUGH!

ANYONE KNOWS HOW TO FIX THIS? IT CANNOT BE THAT IT ONLY WORKS FOR IPAD AND NOT THE OTHER OPTIONS!...

THANKS

CR

Frans v.d. Geest
Braniac
March 7, 2015

‌Your CapsLock seems to be stuck...

Frans v.d. Geest
Braniac
February 12, 2015

By the way, bringing the topic back to scrollable frames: in the releases iOS Digital Editions 4 for iPad etc. this scrollable frames do NOT work! They do in the desktop version of DE4 and in iBooks on iOS but not in DE4 for iOS...

Braniac
February 12, 2015

@Frans – Do you mean Adobe's Digital Editon 4 for iOS?

Don't know, if it's superior to the desktop version for OSX.

I would not trust it.

Eg.: ADE 4.0.2 (for desktop) is crashing, if I open an FXL EPUB with some MSOs and some buttons anchored to text frames.
InDesign CC-2014.1 / ADE 4.0.2 / OSX 10.7.5

Uwe

Braniac
February 12, 2015

Ok Frans

Just noticed, that ADE 4.0.3 is out. I'll try again…

Uwe

Frans v.d. Geest
Braniac
January 30, 2015

Briljant!

Thanks very much for sharing.

papom17339863
New Participant
January 28, 2015

Hi,

thank you for this solution is really perfect.

But I made a series of tests, and this solution only works on iOS 10.10 ... and does not work on 10.9.5 ... !!!! I exported the epub thy remonstration on my MacBook Pro's on 10.9.5 and iBooks 1.0.1, it does not work, then it works great on iOS 10.10 and iBooks 1.1. Y-he has a problem with me, or it only works with CSS Yosemite.

In addition, have you a solution for horizontal sroll because I tried it and it not working at all .... sometimes difficult text, email is very difficult to move it.

Good day.

Papo

Braniac
January 29, 2015

@Papo – then I would suggest not a scrollable frame, but an MSO you can click through showing the whole text.

1. Do some text frames the same size

2. Thread all the text frames to one story

3. Align the text frames

4. Make a MSO out of it:

The text frames are still threaded and text can easily flow between them.

5. Do some navigation buttons to control the MSO states:

"Go To First State", "Go To Next State", "Go To Previous State" etc.

Later you can change the text (add or remove, do different formatting) flowing in that story through the states.

A very flexible solution. Ok, it's not a scrollable frame, but something like that…

Uwe

Obi-wan Kenobi
Braniac
February 11, 2015

Hi, Obi-wan!
To show this bug, I'll upload a movie together with the InDesign CC 2014.1 files and an exported Fixed Layout EPUB to my Dropbox and will post the download link. Give me half an hour, please…

Uwe


Answer to Post #19: