Skip to content

Mixin transform-origin doesn't take affect #1718

Open
@BernhardBehrendt

Description

@BernhardBehrendt

I've a strange propblem with transforms in compass.

I want do move the axis with transform-origin(50% 100%)to the bottom which is working if i type it into firebug.

But if I use the mixin @include transform-origin(50% 100%) it's not visible in firebug.
Only the rotation part is applied @include transform(perspective(600px) rotateX(45deg) rotateY(0deg) rotateZ(0deg));.

In compiled CSS I can find this line but it's not applied somehow and written with three values.
-moz-transform-origin:50% 100% 50%;

My SASS looks like this:

div#loader {
  @include transition-property(transform);
  @include transition-duration(3s);
  @include transform(perspective(600px) rotateX(45deg) rotateY(0deg) rotateZ(0deg));
  @include transform-origin(50% 100%); // This is not taking affect in final css
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: #000;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

If I write the line -moz-transform-origin:50% 100%;directly in my SASS it's working too.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions