package cascade

  1. Overview
  2. Docs
CSS generation and manipulation library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cascade-1.0.0.tbz
sha256=c11bbdc7ab0eee8c03cd162e3e7fd1cb20de62beb13342b3b150a89264ee0056
sha512=43fd97a55c3b1dc4db5c87aa1a5a047d902e902ab2064af3a7c5bf945ebc333f8cd90ecca8013c17be5b950498eace8e0094ee4319eba408285e2bec8d7cdf7b

doc/cascade/Cascade/Keyframe/index.html

Module Cascade.KeyframeSource

Keyframe position types for type-safe \@keyframes construction.

Sourcetype position =
  1. | From
    (*

    from or 0%

    *)
  2. | To
    (*

    to or 100%

    *)
  3. | Percent of float
    (*

    Percentage like 50%

    *)
  4. | Timeline_range of string * float
    (*

    Scroll-Driven Animations 1 §8.1 <timeline-range-name> <percentage> selector such as entry 0%.

    *)

A single keyframe position.

Sourceval string_of_position : position -> string

string_of_position pos renders a position as CSS string.

Sourcetype selector =
  1. | Positions of position list

A keyframe selector (one or more positions).

A keyframe selector.

Sourceval pp : t Pp.t

pp renders a keyframe selector.

Sourceval string_of_selector : selector -> string

string_of_selector sel renders a selector as CSS string.

Sourceval to_string : t -> string

to_string sel renders a selector as CSS source text.

Sourceval position_compare : position -> position -> int

position_compare a b compares two positions for sorting.

Sourceval position_of_string : string -> position option

position_of_string s parses a position string like "from", "to", "50%".

Sourceval selector_of_string : string -> selector

selector_of_string s parses a selector string. Raises Invalid_argument if parsing fails.

Sourceval selector_equal : selector -> selector -> bool

selector_equal a b checks if two selectors are equal.