A power outage at Disneyland left some visitors stranded on rides, prompting widespread frustration.

Park spokeswoman Suzi Brown told the Associated Press that a transformer problem cut power in Fantasyland and Toontown, affecting about a dozen rides. Power was restored by the end of the afternoon.

“We have experienced a power outage near Mickey’s Toontown and Fantasyland,” Disneyland said in a mid-afternoon tweet. “We are working diligently to restore power to the affected areas as soon as possible”.

While Ms Brown said that no one had been injured, visitors complained on social media of getting stuck on stalled rides.

A man named Geoff Fienberg posted an image of halted cars at the “It’s a Small World” ride.

In an interview with CNN, Mr Fienberg said people remained “pretty calm” before they were escorted off the ride after what he estimated to be 25 minutes.

Inside Disney Shanghai park Show all 14 1 /14 Inside Disney Shanghai park Inside Disney Shanghai park Castle Worm's eye view of the crystal chandelier in the castle of the Shanghai Disney Resort Rex Features Inside Disney Shanghai park Restaurant Restaurant of the Shanghai Disneyland Hotel Rex Features Inside Disney Shanghai park Shop People visit the souvenir shop at Shanghai Disneyland Hotel Rex Features Inside Disney Shanghai park Treasure Cove 'Treasure Cove' - the Pirates of the Caribbean themed attraction Rex Features Inside Disney Shanghai park Disney-themed subway train Cartoon images are pictured in a Disney-themed subway train of the Shanghai Metro Line 11 linking the Luoshan Road Station and the Disney Resort Station Rex Features Inside Disney Shanghai park Shanghai Disneyland Hotel Guest room of the Shanghai Disneyland Hotel Inside Disney Shanghai park Toy Story Hotel Corridor of Toy Story Hotel Rex Features Inside Disney Shanghai park Toy Story Hotel The inside of a guest room is seen at Toy Story Hotel Rex Features Inside Disney Shanghai park Disney Shanghai by night Tourists visit the Shanghai Disney Resort in Shanghai Rex Features Inside Disney Shanghai park Alice in Wonderland maze Aerial view of the "Alice in Wonderland" maze in the Shanghai Disneyland Rex Features Inside Disney Shanghai park Tomorrowland at night Aerial view of the illuminated Tomorrowland in the Shanghai Disneyland during the trial operation at the Shanghai Disney Resort Rex Features Inside Disney Shanghai park Opening ceremony preparations at Shanghai Disney Resort Firework and light show rehearsal at the Shanghai Disneyland Rex Features Inside Disney Shanghai park Official opening of Shanghai Disney Resort, Aerial view of disney resort Rex Features Inside Disney Shanghai park Entrance Tourists exit from the Shanghai Disneyland Rex Features

“It was just dark, music was still playing, so that will be in most of our heads probably for the following year,” he told CNN.

Danah Boyd recounted a similar story, saying on Twitter that she was stuck in the “It’s a Small World” attraction with three children for about half an hour.

“Darn song is really stuck and kids can’t stop singing it,” she wrote.

Other visitors shared their disappointment after paying for entry and then finding rides shut down.

“It’s a huge disappointment. This is my mum’s Christmas present to all of us. This has been in the making since August,” Los Angeles resident Ashoka Thiagarajan told Reuters.