Area Of A Triangle

What is the area of the triangle?

Move the slider - can you work out the area of the parallelogram? How does this help you to work out the area of the triangle?