The driver who was escorting the family told them it was probably after food and told them to give it what it wanted.
“It started sniffing around our feet for food and the driver told us to give it anything we had so I fed it my son’s leftover sandwich,” Basnayake told the BBC.
“Those sandwiches and chips probably saved our lives.”
Despite damage to the vehicle, no one was injured in the elephant encounter.
The incident took place on Culp Temple Road, a popular tourist route taking visitors to the Situlpauwa shrine inside the park.
In recent years the elephants in the reserve have become accustomed to visitors and their food. It’s not unheard of for the 5-tonne animals to help themselves.
The video, which surfaced on social media site X, prompted a discussion with many saying they had experienced similar behaviour from the animals.
“In most countries it is forbidden to feed wildlife,” reads one response. “But in Sri Lanka we’ve moved to the next level ... elephants have become highway bandits.”
Others praised the family for their apparent calmness in the face of an enormous pair of tusks.
Yala National Park in southeast Sri Lanka is an area of almost 130,000ha and home to a herd of about 300-500 elephants.
Local guides take sightseers into the park, one of the best places to see the subspecies of Asian elephant.