Scroll Images And Text

Learn how to use features: Scroll and Text replacements. You can find a sample page in interaction > scroll page

Scroll Images

  1. Create a group

    Create a new group in the editor. rect1, rect2 and rect3 into a new group. Select the three rectangles in the layer table, then click create group from project and pages

    Save it. The name is “group0” (defalut name automatically assigned)

    • name: group0
  2. Create a scroll widget

    1. select a rect2 layer

    2. interaction > scroll

the pink rectangle at the center is the view area of scroll object.

  • Select rect2 and then click scroll object from Interactions on kwik panel.

The width and height of rect2, and the position is used to create a scrollWiget.

  • Input a group name to “contents” field. We have create a group named **“group0”, so let’s use it.

    TODO select a group from groupTable for _type:group. For a layer image, _type is “layer”

    • target : “rect2”,

    • type : “group”,

    • height : (automaticall set)

    • width : (automaticall set)

    • area : “layer”,

      area: “page” is available if you want to use the entire page instead of a specified rectanlge of a layer.

    • contents : “group0”, <===== please set this field

    • hideBackGround : true,

    • horizontalScrollDisabled : false,

    • isActive : “true”,

    • positionX : nil, scrollToPosition X

    • positionY : nil, scrollToPosition Y

    • verticalScrollDisabled : true,

Done. Preview in the simulator


Scroll text

Let’s create a scrollable text

  1. select “Article” layer, and click Replacement > Text Replacement.

    • Use native system font

    if not checked, Kwik asks you where your custom font is during publishing.

  2. Select Article layer again, and click Interaction > Scroll

the text color has been changed because of Text replacement.

  1. Create a scroll widget

  2. interaction > scroll

  3. _type is paragraph

  4. contents as “article”

  5. disable vertical scrolling: false

  6. save

Done