Categories
Geometry Mathematics

Angle bisector theorem

Intuitive approach to proof of angle bisector theorem

Categories
3D Blender

Modeling a worm with bones

Trial and error tutorial: How to model a simple worm that wriggles using an armature.

Categories
3D Blender

Scaling in Blender: mind Object vs. Edit mode

When modelling a 3D object in Blender it is important to be aware whether you are in Object Mode or Edit Mode when you change the shape of an object. A mistake that is easily made is to deform an object in Object Mode, and then to find that tools in Edit Mode do not […]

Categories
Animation CSS JavaScript Web development

Animation on page load

To bring a webpage to life, you may want to start an animation when the content of the page appears. For example, a text or an image fades in, or moves to certain position, or grows to a certain size, etc.
Here is a basic method to kick off a page load transition

Categories
Typography Web development

Understanding font size

What does it mean to specify font-size to be, say, 16px? Exactly what part of the font is 16px?

Categories
CSS Web development

Scaling grid tiles containing text

Suppose we have a design with a component that contains an image and text, with responsive dimensions and a fixed height to width ratio. The font size scales too, so the text wraps the same for each width. This is what the HTML structure of the component might look like: The height of the tile […]

Categories
CSS Web development

Transitions of SVG icons

How can we style SVG images on a web page? For instance to define a transition on hovering. Using the <img> tag will not work. Neither will the CSS property background-image. We must put the SVG element inline in the HTML code. Now we can style the SVG elements using CSS selectors. Include external file […]

Categories
CSS Web development

Transforming a static element

When a CSS transform is applied to an element, like it seems that element’s position property is forced to relative. This side effect introduces quirky behaviour, when you depend on the position being static. Here’s an explanation of what happens. Luckily there’s also a simple solution to this problem. A child outgrown its parent Suppose […]

Categories
CSS Web development

Order pseudo-classes

The order of definition of pseudo-classes for the anchor tag is crucial. In Firefox I noted that if you define :visited after :hover, you may not get the style you expect when hovering over an <a> element. That’s logical, if you think of it. But it can be confusing because the Inspector seems to ignore […]

Categories
Gutenberg Wordpress

Setting up a block

Just a note on the way I currently like to set up development of a Gutenberg block. Basically these are the steps mentioned in the WordPress block editor handbook, that uses the @wordpress/package to work with the webpack and Babel libraries, without too much hassle. Alternative: Advanced Custom Fields Pro A month after I wrote […]