Animation / sliding tab

I worked on my project based on the actionBar.js example. But then I noticed that the content tabs are loaded in the single HTML file which then switched by javascript (by setting css display).

My question is, how to make an animation tab as in Android effect? And maybe how to make animation with BBUI.js?

(I was looking for a way to do this, but I have found a JQuery solution on the web, and I don't see any animation on BBUI class.)

So is there a way to do this?

The animation only found in the BBUI documentation reference is only the page loading animation. Maybe I missed something.

OK, I managed to fix myself. Just in case, someone else, I was wondering how do.

I used HTML5 and CSS3 animation. (not JQuery, any other JS framework)

The technique that I use:

1. define the animation in a CSS class

2. Add the animation class (from n ° 1) using javascript (for example onclick event)

Simple as that. I suppose that research both step on Google to get the exact code is not too difficult.

It worked flawlessly (and smooth too) in Wellington, but I don't know how he play on real device since I did not. Not sure on the emulator BB10... haven't tried either...

Tags: BlackBerry Developers

Similar Questions

  • Tab style and animation nearby tab

    Hi all.

    I created a TabPane and it filled with tabs but have a few questions.

    (1) how to style a tab? I would like to look like the shape of the tabs in Chrome.
    (2) how can I get rid of the funky animation when a tab is closed?

    Any ideas? The documentation seems to lack TabPane and examples tab and tab does not appear in the css reference guide.

    Thank you, Nick.

    Hello

    You might find the caspian.css a good reference for this (included in the jfxrt.jar in the JFX installation).

    Animation looks like it is part of the TabPaneSkin, so I suspect your only option here would be to sublass TabPaneSkin class, override the methods that don't animation (maybe just make createTimeLine return an empty timeline that just fires the event needed), then install your custom skin using the - fx-skin in the style sheet. This skin thing is a little crude at the moment, noises of recent messages, the JFX guys looking to more easily provide skin extension in the future.

    In particular, such caspian.css things can be useful:

    /*******************************************************************************
     *                                                                             *
     * TabPane                                                                     *
     *                                                                             *
     ******************************************************************************/
    
    .tab-pane {
        -fx-skin: "com.sun.javafx.scene.control.skin.TabPaneSkin";
        /* -fx-tab-min-width: 4.583em;  55 */
        /* -fx-tab-max-width: 4.583em; 55 */
        -fx-tab-min-height: 2em; /* 24 */
        -fx-tab-max-height: 2em; /* 24 */
    }
    
    .tab *.tab-label {
        -fx-skin: "com.sun.javafx.scene.control.skin.LabelSkin";
        -fx-background-color: transparent;
        -fx-alignment: CENTER;
    }
    
    .tab *.tab-label Text {
        -fx-effect: dropshadow(two-pass-box , rgba(255, 255, 255, 0.4), 1, 0.0 , 0, 1);
    }
    
    .tab-content-area {
        -fx-background-color: -fx-control-inner-background;
        -fx-padding: 0.0em; /* 0 */
        /* -fx-opacity: -fx-disabled-opacity;*/
    }
    
    .tab {
        /* This is how it is done in Button, but the -1 inset caused a white line  */
        /* to appear beneath the tab, which looks bad, so it's taken out below.    */
    /*    -fx-background-color: -fx-shadow-highlight-color, -fx-tab-border-color, -fx-inner-border, -fx-body-color;
        -fx-background-radius: 5 5 0 0, 5 5 0 0, 4 4 0 0, 3 3 0 0;
        -fx-background-insets: 0 0 -1 0, 0, 1, 2;*/
        -fx-background-insets: 0, 1, 2;
        -fx-background-radius: 5 5 0 0, 4 4 0 0, 3 3 0 0;
        -fx-padding: 0.083333em 0.5em 0.083333em 0.5em; /* 1 6 1 6 */
        -fx-text-fill: -fx-text-base-color;
    }
    
    .tab:top {
        -fx-background-color: -fx-tab-border-color, -fx-inner-border, -fx-body-color;
    }
    
    .tab:right {
        -fx-background-color: -fx-tab-border-color, -fx-inner-border-bottomup, -fx-body-color-bottomup;
    }
    
    .tab:bottom {
        -fx-background-color: -fx-tab-border-color, -fx-inner-border-bottomup, -fx-body-color-bottomup;
    }
    
    .tab:left {
        -fx-background-color: -fx-tab-border-color, -fx-inner-border, -fx-body-color;
    }
    
    .tab:hover {
        -fx-color: -fx-hover-base;
    }
    
    .tab:selected {
    /*    -fx-background-color: white;*/
    
    /*    -fx-background-color: -fx-tab-border-color, -fx-inner-border, -fx-body-color;
        -fx-background-radius: 5 5 0 0, 4 4 0 0, 3 3 0 0;
        -fx-background-insets: 0, 1 1 0 1, 2 2 0 2;*/
        -fx-background-color: -fx-tab-border-color, -fx-control-inner-background;
        -fx-background-insets: 0, 1 1 0 1;
        -fx-background-radius: 5 5 0 0, 4 4 0 0;
    }
    
    .tab-pane *.tab-header-background {
        -fx-background-color: -fx-outer-border, -fx-inner-border, derive(-fx-color, -20%);
        -fx-effect: innershadow(two-pass-box , rgba(0,0,0,0.6) , 4, 0.0 , 0 , 0);
    }
    
    /*.tab-pane *.tab-header-area {*/
        /* I would like to use -fx-tab-border-color here, but for some reason it */
        /* just isn't the correct color, even though it works in :top above */
    /*    -fx-background-color: -fx-tab-border-color, lightgray;*/
    /*}*/
    
    .tab-pane:top *.tab-header-area {
        -fx-background-insets: 0, 0 0 1 0;
        -fx-padding: 0.416667em 0.166667em 0.0em 0.833em; /* 5 2 0 10 */
    }
    
    .tab-pane:bottom *.tab-header-area {
        -fx-background-insets: 0, 1 0 0 0;
        -fx-padding: 0 0.166667em 0.416667em 0.833em; /* 0 2 5 0 */
    }
    
    .tab-pane:left *.tab-header-area {
        -fx-background-insets: 0, 0 1 0 0;
        -fx-padding: 0.833em 0.0em 0.166667em 0.416667em; /* 10 0 2 5 */
    }
    
    .tab-pane:right *.tab-header-area {
        -fx-background-insets: 0, 0 0 0 1;
        -fx-padding: 0.833em 0.416667em 0.166667em 0.0em; /* 10 5 2 0 */
    }
    
    .tab-pane .headers-region {
        -fx-effect: dropshadow(two-pass-box , rgba(0,0,0,0.6) , 4, 0.0 , 0, 0);
    }
    
    /* TODO: scaling the shape seems to make it way too large */
    .tab-close-button {
        -fx-background-color: -fx-mid-text-color;
        -fx-shape: "M 0,0 H1 L 4,3 7,0 H8 V1 L 5,4 8,7 V8 H7 L 4,5 1,8 H0 V7 L 3,4 0,1 Z";
        -fx-scale-shape: false;
        -fx-effect: dropshadow(two-pass-box , rgba(255, 255, 255, 0.4), 1, 0.0 , 0, 1);
    }
    
    .tab-close-button:hover {
        -fx-background-color:  -fx-dark-text-color;
    }
    
    /* CONTROL BUTTONS */
    .control-buttons-tab {
        -fx-background-color: -fx-tab-border-color, -fx-inner-border, -fx-body-color;
        -fx-background-insets: 0, 1, 2;
        -fx-background-radius: 5 5 0 0, 4 4 0 0, 3 3 0 0;
        -fx-padding: 0.083333em 0.25em 0.083333em 0.25em; /* 1 3 1 3 */
    }
    
    .tab-down-button {
        -fx-background-color: transparent;
        -fx-padding: 0.0em 0.416667em 0.0em 0.416667em; /* 0 5 0 5 */
    }
    
    .tab-down-button:hover {
        -fx-background-color: -fx-body-color;
        -fx-color: -fx-hover-base;
    }
    
    .tab-down-button .arrow {
        -fx-background-color: -fx-mark-highlight-color, -fx-mark-color;
        -fx-background-insets: 1 0 -1 0, 0;
        -fx-padding: 0.238083em 0.416667em 0.238083em 0.416667em; /* 2.857 5 2.857 5 */
        -fx-shape: "M 0 0 H 7 L 3.5 4 z";
    }
    
    /* FLOATING TABS CUSTOMISATION */
    .tab-pane.floating *.tab-header-background {
        -fx-background-color: null;
    }
    
    .tab-pane.floating *.tab-header-area {
        -fx-background-color: null;
    }
    
    .tab-pane.floating *.tab-content-area {
        -fx-background-color: -fx-tab-border-color, -fx-control-inner-background;
        -fx-background-insets: 0, 1;
        -fx-background-radius: 5, 4;
    }
    
    .tab-pane.floating *.tab {
        -fx-background-color: -fx-tab-border-color, -fx-inner-border, -fx-body-color;
        -fx-background-insets: 0, 1, 2;
        -fx-background-radius: 5 5 0 0, 4 4 0 0, 3 3 0 0;
    }
    
    .tab-pane.floating *.tab:selected {
        -fx-background-color: -fx-tab-border-color, -fx-control-inner-background;
        -fx-background-insets: 0 0 -1 0, 1 1 -1 1;
        -fx-background-radius: 5 5 0 0, 4 4 0 0;
    }
    
    /*.tab-pane:floating *.control-buttons-tab {
        -fx-padding: 0.083333em 0.25em 0.083333em 0.25em;
        -fx-background-color: -fx-tab-border-color, -fx-inner-border, -fx-body-color;
        -fx-background-radius: 5 5 0 0, 4 4 0 0, 3 3 0 0;
        -fx-background-insets: 0, 1 1 0 1, 2 2 0 2;
    }*/
    
  • Help with coding - MouseEnter/leave, then click orders for animation Panel tabs

    Hello!

    I have asked a question similar to this one but unfortunately could not understand!  I hope someone may be able to help now that I am much clearer on what I need...!

    Here is my project of edge animate - http://we.tl/JEOuvnK4SX it's going to be shipped on a site of Muse.

    For now, it works well, with animations that past as the mouse is rolled up on each icon at the top.  I want to achieve is something very similar but with click actions - when icon above is wound on her cheek and reverseplays but the Panel below is played only when you click the icon, in fact - and it maintains until the other is clicked (so the mouse can wonder about the screen without the dissappearing information), it should then playreverse before not to appear a new.

    I also want to start by 'Concept' so that users can see the first round table was screened.  At the present time, there is a big empty space that makes it look like he actually has something missing.

    So I'd like something like that (I hope that makes sense!):

    - ICON (Concept) and PANEL (Concept_1) already active (CLICK) (see image).  It would also be nice if this started as the user scrolled to the bottom of the page that I have some effects of scrolling on the Project Muse.

    MOUSE INPUT:

    sym.getSymbol("ICON").play ('Over');

    LEAVE THE MOUSE:

    sym.getSymbol("ICON").playReverse ();

    CLICK ON:

    < find now enabled "ICON" . playReverse(); >

    < find currently active 'PANEL' . playReverse(); >

    sym.getSymbol("PANEL").play ('Over');

    I've been racking my brain on this but I think that I know enough code!  Any help would be MASSIVELY appreciated!  Thank you

    Screen Shot 2015-02-13 at 2.08.34 pm.png

    An update: icons do not move from respect for the current Panel ==> Website_CDMVD_SymbolsV11.zip - Box

  • Several tabs, sliders or sliding trays in DPS

    Hello!

    How can I have several sliding tabs in DPS on the same page.

    My screenshots show the tabs on the right, then the last released tab. But it seems that this tab stops all the features of the other tabs, i.e. they withdraw.

    Someone at - it a bright idea for a day of dull, the other tabs work?

    Thank you.

    Screen Shot 2013-05-21 at 09.38.53.pngScreen Shot 2013-05-21 at 09.42.03.png

    The entire frame in the scrolling box is powered. The top will block the rest. Suggest the easier I can think of is to redo this as a MSO.

    Bob

  • Turn off window animation

    Firefox anime creations tab and window. For example, on OS X, a new window is animated to grow from the center of the screen.

    Tab animation can be turned off by setting the "browser.tabs.animate" property false How can I do the same thing for windows?

    Thank you!

    My setup: OS X with Firefox 28 10.9.2

    I'm not aware of any setting of Firefox for windows animations.

    I'm not a Mac user, so don't know is not the answer. Such a question is probably best suited to a Mac rather than the Firefox support forum. A quick websearch suggests Mac animations are not controlled at the global level. This apple thread should at least partially answer your question

  • Cannot create the tab menu

    Hello

    I am trying to create a 'Menu of the tab' as described in

    http://developer.BlackBerry.com/native/documentation/Cascades/dev/ios_porting/mapping.html

    I want to hide the tabs and actionbar and try to implement showing on the sliding tab menu to the right!

    I am able to hide the tab menu! But cannot hide the actionbar! Please help me with that! Also, I want to know if it is possible to load the menu tab by code?

    I think that's the problem you describe

    You've created a tabbed pane and have the tabs stored in the overflow but want to hide the whole action bar("tabbedPane").
    

    I'm not posotive, but I am not belive this is possible, because the action bar is now the tabbed pane is the default component, which allows you to switch between tabs.   I have not noticed all the apps that hide the pane tabs, and I did not belive it would be consistent with the user B4BB interface instructions either.

  • Page transition animations

    Is there anything in order to implement the transition page such as flipping, twirling animations, sliding to the bottom to the top, etc. ?

    I see that it is possible to attach animations to transition to UI controls, but don't see any way to do it for a whole page.

    No, but there is no reason that you can't pretend with a container of size.

  • Loading screen does not accept animated GIFs?

    Hello world.

    My captivate 3 projects use the loading of the company logo.

    The problem: the company logo is animated, and the Captivate 3 loading screen does not seem to allow for an animated loading screen.  A static image of the company logo is displayed instead.  This tends to give the impression that a project of loading froze and it aggrivates customers.  Does anyone know how to display the logo of aniamted together?

    Hello

    Try this if it can help you by adding the Logo of your company.

    Open a small project (100 PX by 100 PX) and follow the Insert > Animation.

    Select the Animated Logo company. The Animation is added on stage.

    For best results you can run a loop of animation (Animation properties, tab Options-animation select loop) - this step is optional

    Edit > Preferences > start and end - uncheck the "loading screen".

    Also follow project > skin and uncheck the 'Playback control' and 'borders '.

    Publish the project to Flash (swf). A little Swf of your Logo is now available.

    In your project, under the loading screen options, select the Swf file created. Now, the loading screen can play Logo of your company.

    -Ashwin

  • Bearings with tabs

    Hello

    I created this web page: http://www.repropoint.com/advocate/#

    I placed buttons animated by tabs in the bottom box, but I can't get the image is when you click on the appropriate section. ("games and animation") - how can I get the stay selected tab?

    Thanks in advance

    > I created this web page: http://www.repropoint.com/advocate/#
    >
    > I placed buttons animated by tabs in the bottom box, but I can't
    > the
    > image remains when you click on the appropriate section. (i.e. "games and")
    > animation ")-how can I get the stay selected tab?"
    >
    > Thanks in advance

    This can help:
    http://www.TJKDesign.com/articles/navigation_links_and_current_location.asp

    and it is a DW extension that does the same thing:
    http://divaHTML.com/products/divaGPS/current_menu_location.php

    Thierry | Adobe Community Expert. Articles and tutorials:
    http://www.TJKDesign.com/go/?0

    Widgets Spry | http://labs.Adobe.com/technologies/Spry/samples/ [click on]
    'Widgets']
    Samples of the Spry menu bar |
    http://labs.Adobe.com/technologies/Spry/samples/menubar/MenuBarSample.html
    --

  • How to add data to a write-protected micro SD memory card

    original title: write protected disk

    my removable disk (f :)) is write-protected, so I can't put music on my micro SD memory card, how do I remove this then I'll be able to transfer my music from my android phone?)

    Use a MicroSD adapter. Hold the adapter and MicroSD card, so that you can read the labels, then insert actual MicroSD card into the adapter. On the adapter, usually towards the top left (opposite), you will see the word 'Lock' with a directional arrow. Press the very small sliding tab in the slot to the left of the card upward to remove the write protection of the adapter which will then remove the write protection on the card that you inserted in. When you're ready to protect your data, simply repeat back and forth the slotfacing downwards.

    I hope I could help

  • Hot box Frame

    Hello

    Maybe it is something old but...

    I want to frame the interactive tabs that are half-hidden in the screen scrolling. When the user drags them, they become visible, because they are stuck in a setting more large scrollable. This works well, but the downside is that all the invisible frame scrolling part becomes sensitive to drag, not only the content (the legs). Then the rest of interactivity in my screen is activist and interfered, making it below in the middle of the useless screen slideshows...

    Is there any workaround for this solution: have the sliding tabs while preserving a slideshow swipping thus?

    Thank you

    Use rather a MSO.

  • Is it possible to navto: / / (other documents in a Folio) leave in an MSO?

    For example, other apps that I designed and built I normally use a stack effect sliding it's nav of other docs in folio, the advantage that it is nice and tidy like all you see is a tab on the side of the screen, I find rather a navigation system which is visible through the application, when the user leaves the tab He or she clicks a button of inbvisible at the head of this article...

    I'm toying with the idea of this time have a button that appears on the screen, a menu nav (which I guess would be just a State two MSO - the second State with an 'x' to return to the original object) if the user clicks on a button in the object of the second (State - which is a menu nav) then they would then open another page/section with exactly the same MSO in (which would be through the app)

    (If possible), the advantage of this is sometimes clients/users are a bit thick and do not know if tap or remove a tab..when with content viewer typing a sliding tab of the draw is not big...

    Thanks in advance, I hope that I have explained this clearly.

    Steve

    I'm a little confused by your question, but I think that the answer is Yes.

    You can navto other articles within WHO. The only thing you can't do navto is an article and trigger an ESM in the article with a single button.

    I hope this helps.

  • Hidden navigation HELP!

    Hello world

    I am trying to create a menu that appears and disappears throughout my touch-doc. In the menu, I created different buttons that are navto: / / other folios, or of sections of the doc button. ultimately, what I want to do is create a tear-off tab and each of the active buttons have... is this possible?

    Everything I saw on Lynda, or have google seems to be for interactive PDF files, and I wonder what options are available in DPS?

    Thank you very much

    (a very frantic!) Ann

    Ann, please download the free app from the DPS tips on your iPad and the number of overlays of the art. It covers the creation of sliding tabs and double pull-out and how to link to other folios. Let us know how it goes.

  • Scrolling images problem

    I am using the framework floating to create a vertical sliding tab/Board (created being grouped, pasted into the image). The strange thing is that the first time I created and previewed it, it worked perfectly fine. However, I changed the group object and the content Viewer now not even detect that I'm clicking on an object. If anyone knows what I could hurt I'd be enormously grateful. Note, I also tried to make the solution bypass tray but had no luck.

    So, I thought about it. You should always use the solution of the status bar. Images of scroll will not scroll unless the main tray has been cropped by the frame and the invisible box is still there. At least for grouped objects, I have not tested with just a simple picture.

  • How do I configure firefox to open a gif animated in outlook 2010 - it's just 'new tab' s on

    After changing the associations .mht, and .mhtml for firefox (from IE), when I click on a gif image animated in an e-mail message and select "Open in browser", firefox opens, then just "tabs" away (as is the opening each frame separately). How can I get firefox to display the animation as IE used to?

    An add-in to open the type of file may help: https://addons.mozilla.org/en-us/fire.../mht

Maybe you are looking for