pub struct TailwindTranslate { /* private fields */ }
Expand description
Utilities for translating elements with transform.
§Standard Pattern
Pattern | Properties |
---|---|
translate-[F] | translate([F/4]rem) |
translate-px | translate(1px) |
translate-[A]/[B] | translate([100×A/B]%) |
translate-full | translate(100%) |
Same as translate-x
, translate-y
§Arbitrary Pattern
§translate-[A]
>> translate-[200px]
transform: translate(200px)
>> translate-[100px,100px]
transform: translate(100px,100px);
§translate-x-[A]
>> translate-x-[50%]
transform: translateX(50%)
§translate-y-[A]
>> translate-y-[50%]
transform: translateY(50%)
§Reference
Implementations§
Source§impl TailwindTranslate
impl TailwindTranslate
Trait Implementations§
Source§impl Clone for TailwindTranslate
impl Clone for TailwindTranslate
Source§fn clone(&self) -> TailwindTranslate
fn clone(&self) -> TailwindTranslate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TailwindTranslate
impl Debug for TailwindTranslate
Source§impl Display for TailwindTranslate
impl Display for TailwindTranslate
Source§impl TailwindInstance for TailwindTranslate
impl TailwindInstance for TailwindTranslate
Source§fn attributes(&self, _: &TailwindBuilder) -> CssAttributes
fn attributes(&self, _: &TailwindBuilder) -> CssAttributes
Attributes in css
Source§fn inlineable(&self) -> bool
fn inlineable(&self) -> bool
used to deduplication and marking
Source§fn selectors(&self, ctx: &TailwindBuilder) -> String
fn selectors(&self, ctx: &TailwindBuilder) -> String
Custom selector name
Source§fn additional(&self, ctx: &TailwindBuilder) -> String
fn additional(&self, ctx: &TailwindBuilder) -> String
Additional css in bundle
Auto Trait Implementations§
impl Freeze for TailwindTranslate
impl RefUnwindSafe for TailwindTranslate
impl Send for TailwindTranslate
impl Sync for TailwindTranslate
impl Unpin for TailwindTranslate
impl UnwindSafe for TailwindTranslate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more