Racket preprocessor for CSS & HTML [unstable]
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
css-tools/transition.rkt

13 lines
599 B

#lang racket/base
(require "core.rkt")
(provide (all-defined-out))
(define (make-css-transition property duration #:timing-function [timing-function #f] #:delay [delay #f])
(join-css-strings (filter values (list
(make-css-string "transition-property" property)
(make-css-string "transition-duration" duration)
(and timing-function
(make-css-string "transition-timing-function" timing-function))
(and delay
(make-css-string "transition-delay" delay))))))