Components
54
Accordion Items Basic Hero Basic Map Benefits Card Grid Career Testimonials Case Study Carousel Case Study Content Two Column Contact Form Content Centred Content Image Content Three Columns Content Two Column Content Video Cookie Table Cta Blocks Example Faqs Featured Card Featured Latest Cards Footer Banner Glossary Items Hero Insights Hero Rounded Hero With Featured Insight Home Hero Icon Carousel Image Link Carousel Image Link Carousel 2×2 Image Link Grid Insight Content Job Listing Large Image Large Testimonial Leadership Grid Link Grid Locations Locations Archive Logo Scroller Page Heading People Carousel Related Services Resources Carousel Section Anchors Separator Service Hero Services List Services Tabs Tech Partners Testimonial Carousel Testimonial Single Use Case Component Values Scroller Video

Values Scroller

Our values are the foundation of everything we do:

Change pioneers Data obsessed Customer centric
Field
Field Type
Field Name
Instructions
Block Data
tab
Heading Type
select
heading_type
Heading Text
textarea
heading_text
Values
repeater
values
-- Value text
text
value_text
-- Value Link
url
value_link
Speed
text
speed
Speed of this scroller will depend on length of text as well as number of values. Values must be in miliseconds.
Block Meta
tab
ID
text
block_id
Block Classes
text
block_classes
Background Colors
select
background_colors
Padding Top
select
padding_top
Padding Bottom
select
padding_bottom
Margin Top
select
margin_top
Margin Bottom
select
margin_bottom

				
@import "../../resources/scss/util/variables";
@import "../../resources/scss/util/mixins";

.block-values-scroller{
    padding: 3em 0;
    
    @include bp($lg){
        padding: 6em 0;
    }
    .heading-row{
        align-items: center;
        margin-bottom: rem-calc(32);
        @include bp($lg){
            margin-bottom: rem-calc(64);
        }
    }
    
    .heading{
        font-size: rem-calc(20);
        line-height: rem-calc(28);
        letter-spacing: 0.02em;
        font-weight: 400;
        margin-bottom: 0;

        @include bp($lg){
            font-size: rem-calc(32);
            line-height: rem-calc(56);            
        }
    }

    .values-scroller-text{
        width: 100%;
        overflow: hidden;

        .vs-item{
            font-weight: 400;
            font-size: rem-calc(24);
            line-height: rem-calc(32);
            text-decoration: none;
            letter-spacing: 0.05em;
            color: rgba(0, 0, 0, 0.4);
            margin-right: rem-calc(24);

            @include bp($md){
                font-size: rem-calc(32);
                line-height: rem-calc(56);
                margin-right: rem-calc(124);
            }

            @include bp($lg){
                font-size: rem-calc(64);
                line-height: rem-calc(88);
            }

            &:hover{
                color: $black;
            }
        }
    }
    
    .js-marquee-wrapper{
        &:after{
            content: '';
            clear: both;
            display: block;
        }
    }

    &.bg--primary{
        .heading{
            color: $white;
        }
        .values-scroller-text{
            .vs-item{
                color: rgba(255, 255, 255, 0.4);
                &:hover{
                    color: $white;
                }
            }
        }
    }
}
import 'jquery.marquee';

class ValuesScroller {
	/**
	 * Create and initialise objects of this class
	 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/constructor
	 * @param {object} block
	 */
	constructor() {
		this.blocks = document.querySelectorAll('.block-values-scroller');
        this.init();
	}

	init() {
        var $scroller = $('.block-values-scroller').find('.values-scroller-text');
		$scroller.marquee({
            gap: 50,
            delayBeforeStart: 0,
            direction: 'left',
            duplicated: true,
            pauseOnHover: true
        });
    }
}

new ValuesScroller();
Page Title
Page Type
Page URL
There are is no readme file with this component.