package cascade

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cascade-1.2.1.tbz
sha256=1cf5079b3797cd6e70fbced8dc2631074f357d36fcdea8597c7ba17ac2903f6e
sha512=43f5e6a3986f8f43ce948b8f1d59f6f00e1047f5707c5449b6323b683d2ecd51a0fb34793aad9c48904a67b0f7268d7379ab9baf29917c25a962064bfa3ab694

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
    (*

    CSS Animations 2 sec. 3.2 <timeline-range-name> <percentage> selector such as entry 0%.

    *)

A single keyframe position.

Sourceval timeline_range_names : string list

The <timeline-range-name> keywords, accepted both in a keyframe selector position and by the animation-range properties.

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 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.