Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #408677 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    106 pts
    @mnotermans5114

    I do want to make custom page transitions. Depending on page content animate different elements out in specific ways. All this i can do with Javascript and GSAP TweenMax.

    Then when the specific elements are hidden, i do want to trigger a page transition using Seamless Play.
    That part is easy enough, calling trivNextPage()… but i do want more influence on timing and specific settings of the Seamless transitions.

    What Javascript functions influence the transitions in Lectora ?

    Kind regards,
    Math

    #408838 Score: 1
    Profile photo of Tyll Riedel
    Tyll Riedel
    Member
    beginner
    intermediate
    friend finder
    wise owl
    1 pt
    @triedel3286

    Have you already checked the trivantis-trans.js? There are all the existing page transitions specified. The doTrans() function is called in the html file, committing all the parameters.

    This post has received 1 vote up.
    #409049 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    106 pts
    @mnotermans5114

    Yes. And in that one and several other ones i do find functions that handle transitions…and even can add Javascript to it to have it do things i want. But thats only feasible for Lectora Desktop, for Lectora Online, i work most with now, i cannot override or change functions from those Trivantis js.files..  I can make it work as i want..but then when trying that in Online, Lectora Online although giving a message a added file i use will overwrite the Trivantis one…in fact it doesnot at publishing time… and still uses the default Trivantis setup.

    #409824 Score: 0
    Profile photo of Jennifer Valley
    Jennifer Valley
    Member
    contributor
    beginner
    friend finder
    advanced
    lectora beginner
    verified member
    wise owl
    profile
    picture perfect
    curious george
    113 pts
    @jvalley4735

    @wheels – Thoughts?

    #409871 Score: 0
    Profile photo of Joe Wieloch
    Joe Wieloch
    Moderator
    beginner
    intermediate
    friend finder
    contributor
    LUC16 Attendee
    verified member
    wise owl
    LUC17 Attendee
    advanced
    picture perfect
    38 pts
    @wheels

    That would be a bug, and I will have QA test that.

    You can always override the JavaScript functions themselves in a HTML Extension object, if you are using jQuery you can do a $(document).ready(function(){ … }); to do the overrides (redefine the doTrans or other functions)

    #409901 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    106 pts
    @mnotermans5114

    Tried overriding..failed though…Lectora still uses the built-in functions ignoring extra HTML/Javascript in an extension. At publishing time Lectora says its overriding a built-in function or JS…but when you continue and run that published version it is NOT overwritten and the original old function is still used.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.