Меню
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON PHP КАК СДЕЛАТЬ
     ❯   

CSS Справочники


CSS Свойства





offset-anchor



Example

Fasten the right center point of an <img> element to the defined path:

img {
  offset-path: path('M 50 80 C 150 -20 250 180 350 80');
  offset-anchor: right center;
}
Try it Yourself »

Definition offset-anchor

Подработка: Перевод страницы

The offset-anchor property specifies the point on an element to be fixed along a path defined by the offset-path property.

The point defined by the offset-anchor property will also be the center of rotation if the element is rotated with the offset-rotate property.

Note: This property is currently only working with the Firefox browser.

Default value: auto
Inherited: no
Animatable: yes. Read about animatable Try it
Version: CSS3
JavaScript syntax: object.style.offsetAnchor="bottom right" Try it

Browser Support offset-anchor

The numbers in the table specify the first browser version that fully supports the property.

Property
offset-anchor Not supported Not supported 72.0 Not supported Not supported


CSS Syntax offset-anchor

offset-anchor: auto|value|initial|inherit;

Property Values offset-anchor

Value Description
auto Default. The achored point will be in the center of the element, same as property value '50% 50%'.
left top
left center
left bottom
right top
right center
right bottom
center top
center center
center bottom
If you only specify one keyword, the other value will be "center"
xpos ypos The first value is the horizontal position and the second value is the vertical. The top left corner is 0 0. Units can be pixels (0px 0px) or any other CSS units. If you only specify one value, the other value will be 50%. You can mix % and positions
x% y% The first value is the horizontal position and the second value is the vertical. The top left corner is 0% 0%. The right bottom corner is 100% 100%. If you only specify one value, the other value will be 50%. Default value is: 50% 50%
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

Related Pages offset-anchor

HTML SVG tutorial: SVG Path

CSS tutorial: CSS Animations

CSS offset property: CSS Offset property

CSS offset-distance property: CSS Offset-distance property

CSS offset-path property: CSS Offset-path property

CSS offset-rotate property: CSS Offset-rotate property



×

Связаться с отделом продаж

Если вы хотите использовать услуги schoolsw3 как образовательное учреждение, команда или предприятие, отправьте нам электронное письмо:
sales@schoolsw3.com

Сообщить об ошибке

Если вы хотите сообщить об ошибке или внести предложение, отправьте нам электронное письмо:
help@schoolsw3.com

Schoolsw3 оптимизирован для обучения и подготовки. Примеры могут быть упрощены для улучшения чтения и обучения. Учебники, ссылки и примеры постоянно проверяются, чтобы избежать ошибок, но мы не можем гарантировать полную правильность всего контента.
При использовании Schoolsw3 вы соглашаетесь прочитать и принять наши условия использования,
политику использования файлов cookie и конфиденциальности.

Авторское право 1999- © Copyright. Все права защищены. Schoolsw3 работает на SW3.CSS.