Custom Classes
Apply a custom class, overriding the default, to any element that is displayed or hidden by Geoflow according to the condition(s) defined.
Last updated
Was this helpful?
Apply a custom class, overriding the default, to any element that is displayed or hidden by Geoflow according to the condition(s) defined.
Last updated
Was this helpful?
By default, Geoflow will apply one of two classes to an element based on its visibility status.
Shown Elements: gv-shown Hidden Elements: gv-hidden
You can override this default behaviour and set your own custom classes by applying one or both of the data attributes noted below in the table.
Attribute Name | Attribute Value | Which Page Element? |
---|---|---|
Any valid string of text, number(s) or special character(s) will be accepted as the value.
data-gv-class:show
your-custom-class
Any element with the Geo Visibility data attribute.
data-gv-class:hidden
your-custom-class
Any element with the Geo Visibility data attribute.