Hero Switch Scroller Widget
Hero Switch Scroller Widget - CSS Animation

Responsive Hero Switch Text Scroller

The widget overcomes the inherent problems of using a full width, fixed height "hero" image on a fully responsive page design. It loads three different sizes of image - one for each device type - using the HTML5 picture element with media queries. A polyfill is included to support ancient browsers that dont support the <picture> tag.
This allows appropriate sized images to be downloaded for each device type and has the advantage over using background images in allowing the essential alt text atribute for the search engines.
Switch
When viewed on tablets and smart phones, the image switches from responsive width, fixed height to fully responsive which gives a much better viewing experience for those visitors using mobile devices. If viewing this page on a computer, reduce the browser width to see the change in style.
Scrolling Text
There are a few problems associated with using scrolling text on responsive pages - not the least of which is having any autoplay created using javascript like autoplay sliders and, in this case, scrolling text.
The scrolling is created using CSS animation so that gets rid of the power hungry JS. The scrolling animation is prevented when the page is viewed on a mobile phone and the text is centered.
Viewport
The narrow viewport of a mobile phone leaves no room for more than a few words of text. Any excesss will be chopped. To overcome this, the widget has a field for the main text and a span for extra text. The extra text in the span will be hidden on phones.
Note how the text in the above example shows as "Hero Switch Scroller Widget - CSS Animation" when viewed on a wider screen. The " - CSS Animation" text is in the span and is hidden on phones. This, along with a reduction in font size, helps to allow the remaining content to fit.

Navigation

The Hero Switch Navigation widget creates an inline navigation when viewed on computers and switches to a hamburger drop down on mobile devices.
If viewing this page on a computer, reduce the browser width to see the navigation switch from one type to the other.
It can have up to fourteen links. The last two links can be configured to open external pages and in a new window if required.
The navigation is designed to be used in conjunction with a hero image or other full width item. It can appear above or below or overlay the top or the bottom of the item. For an overlay, the navigation is placed below the hero image on the EverWeb design canvas and then the appropriate box in the widget settings is checked to place it in the required overlay position when viewed in the browser.
Current Page
The widget has an option to display the current page tab in a different color and also to add an animated underline to it.

© EverWeb Widgets -