Skip to main content
Participant
January 19, 2015
Question

Scrollable Frame solution for EPUB Fixed Layout

  • January 19, 2015
  • 13 replies
  • 27167 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

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
Community Expert
Community Expert
September 20, 2016
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.

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
Legend
April 11, 2015

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

Sandee Cohen
Legend
April 11, 2015

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

March 16, 2015

Awesome! Thanks.

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
Community Expert
Community Expert
March 7, 2015

‌Your CapsLock seems to be stuck...

Frans v.d. Geest
Community Expert
Community Expert
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...

Community Expert
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

Community Expert
February 12, 2015

Ok Frans

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

Uwe

Frans v.d. Geest
Community Expert
Community Expert
January 30, 2015

Briljant!

Thanks very much for sharing.

papom17339863
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

Community Expert
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

papom17339863
Participant
January 29, 2015

Thank you Uwe,

I look and hold you aware of your solution in an environment EPUB

Patrick

Dr Patrick Dhont

Le 29 janv. 2015 à 11:52, Laubender <forums_noreply@adobe.com> a écrit :

Scrollable Frame solution for EPUB Fixed Layout

created by Laubender <https://forums.adobe.com/people/Laubender> in InDesign EPUB - View the full discussion <https://forums.adobe.com/message/7143179#7143179>

@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

If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7143179#7143179 and clicking ‘Correct’ below the answer

Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:

Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7143179#7143179

To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"

Start a new discussion in InDesign EPUB by email <mailto:discussions-community-indesign-indesign_epub@adobe-v7.hosted.jivesoftware.com> or at Adobe Community <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=14&container=5001>

For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624 <https://forums.adobe.com/thread/1516624>.